Practical 2: Variables, Script M-files and Graphing

Graph Commands

Exercise

 

> Modify your script M-file, plotMe to specify an appropriate axis, legend, labels and title. Remember to use the hold on and hold off commands.

> Use the help files for the plot command to change the colour of the lines.

wink Important: From now on, it is expected that every graph you make will have an appropriate title and label for both axes.

> What do the following MATLAB coding terms mean?

variable

script M-file

comment

valid