|On this page…|
GUIDE, the MATLAB® Graphical User Interface Development Environment, provides a set of tools for creating graphical user interfaces (GUIs). These tools greatly simplify the process of laying out and programming GUIs.
There are
|On this page…|
GUIDE, the MATLAB® Graphical User Interface Development Environment, provides a set of tools for creating graphical user interfaces (GUIs). These tools greatly simplify the process of laying out and programming GUIs.
There are several ways to open GUIDE from the MATLAB Command line.
|guide||Opens GUIDE with a choice of GUI templates|
|guide FIG-file name||Opens FIG-file name in GUIDE|
You can also right-click a FIG-file in the Current Folder Browser, and then select Open in GUIDE from the context menu.
When you right-click a FIG-file in this way, the figure opens in the GUIDE Layout Editor, where you can work on it.
All tools in the tool palette have tool tips. Setting a GUIDE preference lets you display the palette in GUIDE with tool names or just their icons. See GUIDE Preferences for more information.
Access help topics from the GUIDE Help menu. The first three options lead you to topics in the GUIDE documentation that can help you get started using GUIDE. The Example GUIs option opens a list of complete examples of GUIs built using GUIDE that you can browse, study, open in GUIDE, and run.
The bottom option, Videos, opens a list of GUIDE- and related GUI-building video tutorials on MATLAB Central. Most of the MATLAB Central video tutorials are informal and brief, lasting 5 min. or less.
The GUIDE Layout Editor enables you to populate a GUI by clicking and dragging GUI components into the layout area. There you can resize, group and align buttons, text fields, sliders, axes, and other components you add. Other tools accessible from the Layout Editor enable you to:
Create menus and context menus
Modify the appearance of components
Set tab order
View a hierarchical list of the component objects
Set GUI options
When you save your GUI layout, GUIDE automatically generates a file of MATLAB code for controlling the way the GUI works. This file contains code to initialize the GUI and organizes the GUI callbacks. Callbacks are functions that execute in response to user-generated events, such as a mouse click. Using the MATLAB editor, you can add code to the callbacks to perform the functions you want. You can also add new functions for callbacks to use. Code the Simple GUIDE GUI Behavior shows you what statements to add to the example code to make the GUI work.