Here are the list of commands I have done to try to place an external figure (both figures listed at http://www.atmos.uw.edu/~akchen0/CERES_Project/) into a subplot slot in an open figure.
subplot(2,2,1);
a = open('blah.fig');
plot(a);
I'd like blah.fig to be subplot 1, but I only get an error message when I try to "plot" a.
Tried the listed solution from the answer, but it didn't print out any of the labels/legends (and a few of the graphs are missing) - the results are roughly shown below.
copyobj(findobj('type','line'),s1)
allows me to copy all the lines fine (though they're distorted a bit). If I want to try copying the legend with
copyobj(findobj(gcf1,'Type','axes','Tag','legend'),s1)
It does not work, and displays the error message "Object axes1 can not be a child of parent axes1". If I use ax1, it displays "invalid handle". Same for the command below:
copyobj(findobj('type','axes'),s1)
Some links I tried but didn't work: http://www.mathworks.com/matlabcentral/answers/92538-how-can-i-copy-an-existing-figure-onto-another-figure-as-a-subplot-using-matlab-7-10-r2010a
Or this: http://www.mathworks.com/matlabcentral/newsreader/view_thread/108304
>> figure_children = get(gcf1,'Children');
children_axes = findall(figure_children,'Type','axes');
>> copyobj(children_axes,s1)
Error using copyobj
Object axes[1] can not be a child of parent axes[1]
allchild does not work either.
>> copyobj(allchild(h1),s1)
Error using copyobj
Object uicontextmenu[1] can not be a child of parent axes[1]
The second reply here works for its own example but not for my example.