matlab中用subplot画完图后怎么调整使每幅图大小都相等

2025-03-30 16:33:46
推荐回答(1个)
回答1:

%subplot用法:
t=0:2*pi/99:2*pi;
x=1.15*cos(t);y=3.25*sin(t);
subplot(2,3,1)%画在两行三列图片的第1个位置
plot(x,y)
axis normal
grid on
title('Normaland Grid on')%添加图片名字
subplot(2,3,2),plot(x,y)%画在两行三列图片的第2个位置
axis equal
grid on,title('Equal')
subplot(2,3,3),plot(x,y)%画在两行三列图片的第3个位置
axis square
grid on,title('Square')
subplot(2,3,4),plot(x,y)%画在两行三列图片的第4个位置
box off
title('Image and Box off')
subplot(2,3,5),plot(x,y)%画在两行三列图片的第5个位置
axis image fill
box off,title('Image and Fill')
subplot(2,3,6),plot(x,y)%画在两行三列图片的第6个位置
axis tight
box off,title('Tight')