Andy's Octave Assignment

From Class Wiki
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