matlab绘制函数

>> x1=linspace(0,2*pi,100);
x2=linspace(0,3*pi,100);
x3=linspace(0,4*pi,100);
y1=sin(x1);
y2=1+sin(x2);
y3=2+sin(x3);
x=[x1;x2;x3]';
y=[y1;y2;y3]';
plot(x,y,x1,y1-1)

x=-2*pi:0.001:2*pi;
y=sin(x);
plot(x,y)

posted @ 2014-03-07 22:04  CSER_think more  阅读(244)  评论(0编辑  收藏  举报