永发信息网

matlab plot a in the top half of a figure and b in the botto

答案:2  悬赏:70  手机版
解决时间 2021-12-30 23:06
  • 提问者网友:我的未来我做主
  • 2021-12-30 06:04
matlab
plot a in the top half of a figure and b in the bottom half,and set title,axis.
\x05a=[ 3.2 4.1 5.0 5.6]
\x05b = [2.5 4.0 3.35 4.9]
最佳答案
  • 五星知识达人网友:鱼芗
  • 2021-12-30 07:31

一个figure画两个图上面是a,下面的是b的并设置标题,坐标轴
a=[ 3.2 4.1 5.0 5.6];
b = [2.5 4.0 3.35 4.9];
subplot(2,1,1)
plot(a,'-o');
xlabel('number')
ylabel('value of a')
title('a')
subplot(2,1,2)
plot(b,'-o')
title('b')
xlabel('number')
ylabel('value of b')


全部回答
  • 1楼网友:玩家
  • 2021-12-30 07:49
你的回答很对
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯