【发布时间】:2017-09-27 10:56:46
【问题描述】:
在集群上进行了多次模拟,每次模拟保存一个图形,我想将这些图形组合成一个图形。
为方便起见,假设我们有两个数字:
x = 0:0.01:.2;
subplot(1,3,1)
plot(x,sin(x))
legend('sin(x)')
subplot(1,3,2)
plot(x,cos(x))
legend('cos(x)')
subplot(1,3,3)
plot(x,tan(x))
legend('tan(x)')
和
x = 0:0.01:.2;
subplot(1,3,1)
plot(x,x,'r')
legend('x')
subplot(1,3,2)
plot(x,1-x.^2/2,'r')
legend('1-x.^2/2')
subplot(1,3,3)
plot(x,x,'r')
legend('x')
另存为figure1.fig 和figure2.fig。我现在想将这两个图组合成一个带有 3 个子图、相同颜色和图例的图形。有没有简单的方法可以做到这一点?
【问题讨论】:
标签: matlab plot matlab-figure subplot