Presentation is loading. Please wait.

Presentation is loading. Please wait.

Functions Commands Programming Steps Examples Printing Homework Hints.

Similar presentations


Presentation on theme: "Functions Commands Programming Steps Examples Printing Homework Hints."— Presentation transcript:

1 Functions Commands Programming Steps Examples Printing Homework Hints

2 exp(x) x input can be a number, a variable, or an expression sin(x) Expect radians atan2(x,y) Two input function, separate the multiple inputs by a comma [Value, Index] = min(Array) Two output function (needs brackets to left of assignment operator) The input is a new data type – an array Note the use of descriptive variable names

3 format compacteliminates extra line spaces help atan2information on a function doc atan2pretty information on a function lookfor degreessearches help for keywords up/down arrowsto “get” previous lines of code Cntl-c, Cntl-vcut and paste %comment only (stop executing) …ellipsis – continue on next line ;suppress screen echo

4 Set-up Goals – what will program do Input & output variable names and datatypes Theory/equations/relationships Algorithm Flowchart or Pseudocode Code Correct syntax Check logic Add documentation

5 Start – All Programs – Microsoft Office – Word Add Titles, Headers, Labels (save as a template) Cut and paste code from Matlab File – Print (icon doesn’t work) Switch Printer to CP5520 Series

6 Two parts! Yellow page – hand written Book problems – printed from Word


Download ppt "Functions Commands Programming Steps Examples Printing Homework Hints."

Similar presentations


Ads by Google