Presentation is loading. Please wait.

Presentation is loading. Please wait.

Very Old Introduction to Matlab for EGR 220

Similar presentations


Presentation on theme: "Very Old Introduction to Matlab for EGR 220"— Presentation transcript:

1 Very Old Introduction to Matlab for EGR 220

2 Helpful links... I have a number of links to Matlab tutorials at the very bottom of the class webpage. Note that you cannot have any spaces in your file names for Matlab

3 Notes for EGR220 HW Note that Matlab may now be in a slightly different location, but you can hopefully still find it. You will type “>> edit ______.m” where the blank is filled in with your file name, that will not be hello.m You can copy the skeleton program from the webpage into the editor window that has opened for you, but you must add code as needed for this to actually run for you.

4

5

6

7

8

9

10

11 Notice this faint line in the editor, and be careful to keep your code to the left – this will ensure well-formatted printouts.

12 Creating a Vector (time)
first: increment: last Colon operator: a shortcut notation used to initialize vectors and arrays with many elements Type the following in the Matlab window, with and without the semicolon at the end. Decide what you would like for your time vector >> x = [1 : 2 : 10]; >> y = [0.01 : 0.01 : 1];

13 Matlab Help Type help <command> at the Matlab prompt to get help on any Matlab command >> help legend >> help plot


Download ppt "Very Old Introduction to Matlab for EGR 220"

Similar presentations


Ads by Google