Handling multi figures.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have saved three figures in my system.
Figure1.fig, Figure2.fig, and Figure3.fig.
Now I want to load this figures and also want to use merge these three figure into one. Such that
subplot(1,3,1), figure1;
subplot(1,3,2), figure2;
subplot(1,3,3), figure3;
is it possible ? I know nothing is impossible but How can I do it :)
0 Kommentare
Antworten (1)
Daniel Shub
am 30 Nov. 2011
Assuming that each figure has only a single axis and figureN refers to the handle of the figure, you could do something like
figure1 = figure;
plot(1:10);
or
figure1 = openfig('Figure1.fig', 'new', 'invisible');
hfig = figure;
hax = subplot(1,3,1);
pos = get(hax, 'Position');
delete(hax);
hax = copyobj(get(figure1, 'children'), hfig);
set(hax, 'Position', pos);
2 Kommentare
Titus Edelhofer
am 30 Nov. 2011
h = openfig('Figure1.fig', 'new', 'invisble');
Otherwise proceed as Daniel suggested ...
Siehe auch
Kategorien
Mehr zu Subplots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!