Why can't I access the AppData property of a GUI created in GUIDE in MATLAB 8.1 (R2013a)?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 25 Oct 2013
Answered: MathWorks Support Team
on 25 Oct 2013
Within GUIDE, I cannot see the 'ApplicationData' property of the main figure, and I would like to change this data but don't know how.
Accepted Answer
MathWorks Support Team
on 25 Oct 2013
'AppData' is not a property of the figure per se. Although the following documentation page uses the term "property" to describe 'AppData', it is not a figure property that can be accessed using the SET and GET functions.
<http://www.mathworks.com/help/matlab/ref/getappdata.html>
To accesss the application data of a GUIDE-built GUI named foo, one would create an instance of the figure and call GETAPPDATA to get the application-defined data. for example:
>> h = foo;
>> values = getappdata(h)
ans =
GUIDEOptions: [1x1 struct]
lastValidTag: 'figure1'
ctb200jaz: [1x1 graphics.internal.CameraToolBarManager]
SavedVisible: 'on'
UsedByGUIData_m: [1x1 struct]
GUIOnScreen: 1
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!