Skip to content
This repository was archived by the owner on Nov 25, 2018. It is now read-only.

Commit c797ead

Browse files
committed
Finish initial version of GUI state saving
1 parent 1605623 commit c797ead

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

saveGUIstate.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,17 @@ function saveGUIstate(h)
5252
end
5353

5454
if ~isempty(propstopull)
55+
% Pull properties and save to output structure
56+
% Structure is currently not preallocated, need to revisit
57+
% later to figure out a robust method to preallocate for speed
5558
if iscell(propstopull)
5659
for jj = 1:length(propstopull)
57-
asdf = 1;
60+
output.(objectlist{ii}).(propstopull{jj}) = ...
61+
get(h.(objectlist{ii}), propstopull{jj});
5862
end
5963
else
60-
asdf = 1;
64+
output.(objectlist{ii}).(propstopull) = ...
65+
get(h.(objectlist{ii}), propstopull);
6166
end
6267
end
6368
end

0 commit comments

Comments
 (0)