Hi, If I have this plot
x = linspace(1,10);y = sin(x);plot(x,y)title('Sine Plot')
And want to assign it to a subplot with the same axes, I will do
ax1 = gca;subplot(2,1,1,ax1)
But now if I want a new plot at subplot(2,1,2) with the same axes, I can’t do
ax1 = gca;subplot(2,1,2,ax1)
because it deletes the previous plot. How can I keep both plots?
Cheers, p.
Best Answer