% this file plots three dependant variables y1, y2, and y3 vs. an independant variable x. x=[0 .1 .2 .4 .6 1]; y1=[.3 .5 .6 .5 .3 .1]; y2=[ 1 .6 .7 .3 .2 .1]; y3=[ .1 .2 .3 .4 .5 .6]; h=plot(x,y1,x,y2,x,y3); xlabel('x'); ylabel('y1=blue--, y2=green...., y3=red-.-.'); set(h,'LineWidth',2,{'LineStyle'},{'--';':';'-.'})