User`s guide

Icon Editor
A pane l, configured as a line , that separates the icon editor from the OK
and Cancel buttons.
An OK push button that causes the GUI to return the icon as an
m-by-n-by-3 array and closes the GUI.
A Cancel push button that closes the GUI without returning the icon.
Techniques Used in the Icon Editor Example
This example illustrates the following GUI programming techniques:
Creating a GUI that does not return a value until the user makes a choice.
Retrieving output from the GUI when it returns.
Supporting custom input property/value pairs with data validation.
Protecting a GUI from being changed from the command line.
Creating a GUI that runs on multiple platforms
Sharing data between two G U Is
Achieving the proper resize behavior
Note This example uses nested functions. For information about using
nested functions, see “Nested F unctions”.
View and Run the Icon Editor Code
This example uses three code files and one icon image:
iconEditor.m
icon Read .m
colo rPal ette.m
eras er.g if
If you are reading this example in the MATL AB Help browser, you can access
its files by clicking the following links. If you are reading on the Web or in a
15-65