Andy's Octave Assignment

From Class Wiki
Revision as of 08:42, 1 October 2010 by Andrew.wooley (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Changing Line Style on a Plot

Plot of the script Xplot.m

This is an example of some of the different line styles available on Matlab/Octave.


plot(x,a,'x')  %changes points to x's

hold on

plot(x,b,'o')  %changes points to o's

hold on

plot(x,c,'*')  %changes points to *'s

hold on

plot(x,d,'+')  %changes points to +'s

hold on

plot(x,e,'.')  %changes points to .'s