Andy's Octave Assignment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[File:untitled.png|500px|thumb|right|Plot of the script Xplot.m]] | [[File:untitled.png|500px|thumb|right|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''' | |||
plot(x,a,'x') %changes points to x's | |||
hold on | hold on | ||
plot(x,b,'o') %changes points to o's | plot(x,b,'o') %'''changes points to o's''' | ||
hold on | hold on | ||
plot(x,c,'*') %changes points to *'s | plot(x,c,'*') %'''changes points to *'s''' | ||
hold on | hold on | ||
plot(x,d,'+') %changes points to +'s | plot(x,d,'+') %'''changes points to +'s''' | ||
hold on | hold on | ||
plot(x,e,'.') %changes points to .'s | plot(x,e,'.') %'''changes points to .'s''' |
Latest revision as of 09:42, 1 October 2010
Changing Line Style on a Plot
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