In order to copy MATLAB figure (.fig) files into multiple subplots use the following commands:
h1 = openfig('test1.fig','reuse');
ax1 = gca;
h2 = openfig('test2.fig','reuse');
ax2 = gca;
h3 = figure;
s1 = subplot(2,1,1);
s2 = subplot(2,1,2);
fig1 = get(ax1,'children');
fig2 = get(ax2,'children');
For additional information on the COPYOBJ function, refer to the following documentation:
Attached are 2 scripts which will demonstrate how to place multiple FIG files into different subplots.
The file 'savfigs.m' creates 2 figures and saves them into the current working directory. Please run this file first.
The file 'copyaxes.m' opens these figures and then copies them to the different subplot axes.