User`s guide
Color Palette
Techniques Used
in the Color Palette Example
This example ill
ustrates the following techniques:
• Retrieving out
put from the GUI when it returns.
• Supporting cu
stom input property/value pairs w ith data validation.
• Sharing data b
etween two GUIs
See “Icon Edi
tor” on page 15-63 for examples of these and other programming
techniques.
Note This ex
ample uses nested functions. For information about using
nested func
tions, see “Nested Functions”.
View and Ru
n the Color Palette Code
If you are
reading this example in the MATLAB Help browser, you can acces s
its files
by clicking the following links. If you are reading on the Web or in a
PDF, go to
the corresponding section in the MATLAB Help Browser to use
the link
s.
If you in
tend to modify the layout or code of this GUI example, you should
first s
ave a copy of its code in your current folder (You need write access
to your
current folder to do this.) C lick on the following links to copy the
exampl
e files to your current folder and open them.
1 Click
here to copy the GUI code file to your current folder
2 edit col orPa lette.m or Click here to open the GUI code file in the Editor
If you just want to run the GUI and inspect its code, follow these steps:
1 ClickheretoaddtheexamplefilestotheMATLABpath(onlyforthe
current session).
2 ClickheretorunthecolorPalette GUI.
15-55