x=0:pi/10:2*pi;
y1=sin(x);
y2=0.6*sin(x);
y3=0.3*sin(x);
plot(x,y1,x,y2,'-o',x,y3,'-*')

legend('曲线1','曲线2','曲线3')

MATLAB画图,图上有每个线的意义

相关文章: