- 积分
- 16
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-5-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
clf
x=0:0.01:pi;
y1=cos(x);
y2=cos(2*x);
y3=cos(3*x);
y4=cos(4*x);
a=plot(x,y2,'r',x,y3,'g');
set(a(1),'nextplot','add');
plot(x,y1,'b','parent',a(1));
set(a(2),'nextplot','add');
plot(x,y4,'y','parent',a(2));
set(get(AX(1),'Ylabel'),'string','cosx');
set(get(AX(2),'Ylabel'),'string','cos2x');
set(get(AX(3),'Ylabel'),'string','cos3x');
set(get(AX(4),'Ylabel'),'string','cos4x');
这是用matlab 画出cosx cos2x cos3x cos 4x
帮忙修改一下
|
|