For my first attempt I tried:
Note: I hid the filename but it loads just fine
fig = openfig('*****.fig');a = get(fig);hold onsubplot(2,1,1);errorbar(x,av1,e1,'-d','MarkerSize',10,'Color',[1 165/256 0]);hold onsubplot(2,1,2);errorbar(x,av2,e2,'-d','MarkerSize',10,'Color',[1 165/256 0]);
but this just overwrites fig in both subplots (I found out that any time you type subplot(m,n,p) it will wipe out any pre-loaded axes).
I then tried getting rid of the subplot function, but it only applies the new graphical output to the SECOND subplot region
fig = openfig('ER_SvA_discrete.fig');a = get(fig);hold onerrorbar(x,av1,e1,'-d','MarkerSize',10,'Color',[1 165/256 0]);hold onerrorbar(x,av2,e2,'-d','MarkerSize',10,'Color',[1 165/256 0]);
Is there a way to load up that figure, select subplot(2,1,1), hold on, errrorbar; then move to subplot(2,1,2) and do the same thing?
Cheers,
Alex
Best Answer