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

Post on 05-Jan-2016

226 Views

Category:

Documents

5 Downloads

Preview:

Click to see full reader

TRANSCRIPT

What is Matlab Course GoalsPrecedenceAccounts &

LoginVariablesError TypesCourse Logistics

Engr 6: Matlab Programming

Vince BertschOffice: 1776527-4621vbertsch@santarosa.ed

u

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

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.

( ) parentheses^ power/ * \ multiplication &

division+ - addition &

subtraction

Scalar Operations & Precedence

Precedence Bingo

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

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).

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

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'.

top related