matlab怎么样把两组数据画在一张图上?x5=[1554.4091554.41741554.42381554.42781554.43121554.43481554.43761554.44581554.4524]';x15=[1554.40841554.4181554.42321554.42861554.43541554.44121554.44481554.44881554.452];y=[52 100 200 300 400 500 60
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 22:57:25
matlab怎么样把两组数据画在一张图上?x5=[1554.4091554.41741554.42381554.42781554.43121554.43481554.43761554.44581554.4524]';x15=[1554.40841554.4181554.42321554.42861554.43541554.44121554.44481554.44881554.452];y=[52 100 200 300 400 500 60
matlab怎么样把两组数据画在一张图上?
x5=[1554.409
1554.4174
1554.4238
1554.4278
1554.4312
1554.4348
1554.4376
1554.4458
1554.4524
]';
x15=[1554.4084
1554.418
1554.4232
1554.4286
1554.4354
1554.4412
1554.4448
1554.4488
1554.452];
y=[52 100 200 300 400 500 600 700 800];就如这个
matlab怎么样把两组数据画在一张图上?x5=[1554.4091554.41741554.42381554.42781554.43121554.43481554.43761554.44581554.4524]';x15=[1554.40841554.4181554.42321554.42861554.43541554.44121554.44481554.44881554.452];y=[52 100 200 300 400 500 60
plot(x5,y,x15,y);
就可以了 线形的颜色自动区分
在用legend加注释
legend('x5','x15')
如果是一个界面两张图
用
subplot(1,2,1)
plot(x5,y);
subplot(1,2,2)
plot(x15,y);