Exporting handles in vectors alongside a figure

2 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by