Getting Started    

Graphics User Interfaces

Here is a simple example illustrating how to use Handle Graphics to build user interfaces. The statement

creates a push button in the center of a figure window and returns a handle to the new object. But, so far, clicking the button does nothing. The statement

creates a string containing a command that alters the push button's position. Repeated execution of

moves the button to random positions. Finally,

installs s as the button's callback action, so every time you click the button, it moves to a new position.

Graphical User Interface Design Tools

MATLAB provides GUI Design Environment (GUIDE) tools that simplify the creation of graphical user interfaces. To display the GUIDE Layout Editor, issue the guide command.


  Finding the Handles of Existing Objects Animations