matlab一个figure画多个子图,和多个figure画多个图。
1,一个figure画多个子图:figure(10)% define figuresubplot(2,2,1);% subplot(x,y,n)x表示显示的行数,y表示列数,n表示第几幅图片plot(...);subplot(2,2,2);plot(...);subplot(2,2,3);plot(...);subplot(2,2,4);plo
·
1,一个figure画多个子图:
figure(10) % define figure
subplot(2,2,1); % subplot(x,y,n)x表示显示的行数,y表示列数,n表示第几幅图片
plot(...);
subplot(2,2,2);
plot(...);
subplot(2,2,3);
plot(...);
subplot(2,2,4);
plot(...);
2,多个figure画多个子图:
figure(1); % 第一个子图
plot(...);
figure(2); % 第二个子图
plot(...);
figure(3);
plot(...);
figure(4);
plot(...);
更多推荐
已为社区贡献1条内容
所有评论(0)