Filter löschen
Filter löschen

Exporting handles in vectors alongside a figure

1 Ansicht (letzte 30 Tage)
Jakob Sievers
Jakob Sievers am 19 Mär. 2014
Bearbeitet: Jakob Sievers am 19 Mär. 2014
Hi there
I am exporting a number of figures (.fig) using saveas in one script and opening them for further analysis in another script. I have made a series of handle vectors to control specific aspects of the figures and I'd like to be able to import those alongside the figure. However it appears that I am unable to use the handle vectors if saving and loading those (as .mat files). I.e. they are inactive upon import. The only way I have found so far to reach any of the active handles is:
mainchild=get(gcf,'Children');
subchild=cell(length(mainchild),1);
for il=1:length(mainchild)
subchild{il}=get(mainchild(il),'Children');
end
which returns all handles in some sort of order but is far more complicated to figure out than the predefined vectors I had assigned. (there are many handles in play for these figures).
Does anyone know how to do this or will I have to look through subchild to find the right handle for each specific purpose?
Cheers
Jakob

Antworten (0)

Kategorien

Mehr zu Printing and Saving 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!

Translated by