比如:
x=[1,5,3,7,4]
plot(x)
或者
x=[1,5,3,7,4]
plot(x,'-*')
如何用matlab绘制一个折线图
10for i=1:10
xx(i,:)=rand(1,10);
end
figure(1);
plot(xx(:,1),0:0.1:1);
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
for i=1:10
xx(i,:)=rand(1,10);
end
figure(1);
plot(xx(:,1),0:0.1:1);