User`s guide
Ways to Manage Data in a GUIDE GUI
2 Type guide slide rbox _appdata or click here to open the GUI in GUIDE.
3 Type edit sliderbox_appdata orclickheretoopentheGUIcodefilein
the Editor.
You can view the properties of any component by double-clicking it in the
Layout Editor to open the Property Inspector for it. You can modify either
the figure, the code, or both. Then you can save the G UI in your current
folder using File > Save as from GUIDE. This saves both files, allowing
you to rename them if you choose.
IfyoujustwanttoruntheGUIorinspectitinGUIDE,followthesesteps:
1 ClickheretoaddtheexamplefilestotheMATLABpath(onlyforthe
current session).
2 Click here to run the sliderbo x_ap pdata GUI.
3 Click here to display the GUI in the GUIDE Layout Editor (read-only).
4 ClickheretodisplaytheGUIcodefileintheMATLABEditor(read-only).
Note Do n o t save GUI files to the examples folder where you fo und them,
or you will overwrite the original files. If you want to s ave the G UI files,
use File > Save as from GUIDE, which saves both the GUI FIG-file and
the GUI code file.
How Sharing Data with Application Data Works. You can associate
application data with any object— a component, menu, or the figure itself. To
access application data, a callback must know the name of the data and the
handle of the component with which it is associated. Use the
setappdata,
getappdata, isappdata,andrmappdata functions to manage application data.
Note For more information, see “App lication Data” on page 9-5 .
9-15