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]
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 03:12:09
matlabplotainthetophalfofafigureandbinthebottomhalf,andsettitle,axis.\x05a=[3.24.15.05.6]\x05b=[2.54
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]
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]
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]
一个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')