I have saved a figure, foo.fig, in Matlab, which contains subplots. I later want to open it and change the y-axes on each subplot. For example, say I want to change the axes of subplot 2:
hgload('Belle_8_8_14_ch3.fig');
subplot(5,4,2)
set(gca, 'YLim', [0 1])
The problem is, when I call subplot
everything in panel 2 is overwritten. How do I stop this?
I have lots of these plots, so I cannot do it simply by clicking and changing them manually with the GUI.
Note this is only a problem with a figure I have saved and reopened, but unfortunately I need to do this for this application.
Related content
http://www.mathworks.com/matlabcentral/answers/85219-subplot-of-already-saved-figures