what is matlab course goals precedence accounts & login variables error types course logistics...

8
What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Engr 6: Matlab Programming Vince Bertsch Office: 1776 527-4621 [email protected] u

Upload: lily-campbell

Post on 05-Jan-2016

225 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

What is Matlab Course GoalsPrecedenceAccounts &

LoginVariablesError TypesCourse Logistics

Engr 6: Matlab Programming

Vince BertschOffice: [email protected]

u

Page 2: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

Numerical ComputationsVisualization/GraphingProgrammable (interpreted)Symbolic EquationsToolboxes for Engineering

Graphical User InterfacesData AcquisitionSimulation & DesignSignal Processing Image ProcessingControl SystemsFuzzy Logic

What Does Matlab Do?Calculator

ExcelC++, Java, AssemblyMathematica, Maple

Lab View, Logger Pro

Page 3: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

Computer programming skillsComputer as a tool for analysis & displayCollaboration for efficient learning & skill

buildingMatlab specific knowledge

Course Goals

Goals may cause recurring problems due to narrowed

focus and decreased intrinsic motivation.

Use care when applying goals.

Page 4: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

( ) parentheses^ power/ * \ multiplication &

division+ - addition &

subtraction

Scalar Operations & Precedence

Precedence Bingo

Mark your 9 squares with numbers from 1 to 25 (no duplicates)

Page 5: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

User: engr-x

Pswd: xDom:apptech

Accounts & LoginInstructor will give each of you a

unique login number, it’s the x.You will be prompted to make a new

password (case sensitive).

Page 6: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

Case sensitive32 character maxNo spaces or math symbols

*^-[.{;(%=@:...Avoid command names & predefined

constantssin, exp, size, max, format, helpNaN, pi, Inf, i, j, eps, ans,

= is assignment operator (not the math symbol)>> VinHtInch = 6*12 + 6 >> y+5=6

syntax errorName returns the value

>> VinHtCM = 2.54*VinHtInch

Variables

Page 7: What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

Syntax errorComputer gives red error

messageComputer says, “I don’t

understand.”Logical error

Result happens, but is wrongUser says, “That’s not what I

meant.”

Error Types

>> VinHtInch = 6*10 + 6;>> VinHtCM = 2.54*VinHtinch??? Undefined function or variable 'VinHtinch'.