| Upgrading from MATLAB 4 to MATLAB 5.0 | Search  Help Desk |
Improvements to Graphical User Interfaces (GUIs)
General GUI Enhancements
MATLAB 5.0 provided general enhancements that are useful in the GUI area:nosplash argument suppresses the splash screen on UNIX.
CloseRequestFcn callback can abort a figure close command.
| Function |
Description |
uiresume |
Resume suspended M-file execution. |
uiwait |
Block program execution. |
waitfor |
Block execution until a condition is satisfied. |
Guide
Guide is a Graphical User Interface (GUI) design tool. The individual pieces of the Guide environment are designed to work together, but they can also be used individually. For example, there is a Property Editor (invoked by the commandpropedit) that allows you to modify any property of any Handle Graphics object, from a figure to a line. Point the Property Editor at a line and you can change its color, position, thickness, or any other line property.
The Control Panel is the centerpiece of the Guide suite of tools. It lets you "control" a figure so that it can be easily modified by clicking and dragging. As an example, you might want to move a button from one part of a figure to another. From the Control Panel you put the button's figure into an editable state, and then it's simply a matter of dragging the button into the new position. Once a figure is editable, you can also add new uicontrols, uimenus, and plotting axes.