Thanks.
A little more info on what you are actually trying to do would be
helpful. I am interested in this sort of thing too as I want to
simulate the appearance of having more than one window in a figure so
that the user can appear to tab through different windows. Matlab
does not have a super container for figures so this is not possible.
Copying of hidden figure children seesm to be a way of appearint ot
have this functionality.
Paul
The basic steps are
1) Open the figure. Using hgload(...,'visible','off') to do this is nice
because it keeps the figure invisible.
2) Use COPYOBJ with some combination of FINDOBJ, FINDALL, or ALLCHILD to
copy the old figure's objects to the new figure. When using FINDOBJ or
FINDALL you may need to remove the figure object from the returned
vector. You may need to remove other things as well, like Matlab's
built-in menus, etc. Functions like SETDIFF can be useful for this.
3) One can, if necessary, use REMAPFIG to reposition the objects within
the new figure.
Hope that helped,
Jordan
I have a few dozen figure files saved on hard-disk and I would like to
run a loop to display each figure file. Instead of Matlab popping all
different figure window, I would like to load each file sequentially
into one figure window.
Thanks for your help. I will try it out.