Andy's Octave Assignment: Difference between revisions
Jump to navigation
Jump to search
Created page with '==Changing Line Style on a Plot==' |
No edit summary |
||
Line 1: | Line 1: | ||
==Changing Line Style on a Plot== | ==Changing Line Style on a Plot== | ||
[[File:untitled.png|500px|thumb|right|Plot of the script Xplot.m]] | |||
x=0:1:5; | |||
a=1*x; | |||
b=2*x; | |||
c=3*x; | |||
d=4*x; | |||
e=5*x; | |||
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 |
Revision as of 14:40, 30 September 2010
Changing Line Style on a Plot
x=0:1:5;
a=1*x;
b=2*x;
c=3*x;
d=4*x;
e=5*x;
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