Creating Graphical User Interfaces    

Input and Output Arguments

The following examples illustrate various ways to call a GUI named my_gui with different arguments. All arguments are passed to the opening function in the GUI M-file.

See An Address Book Reader for an example that uses this syntax. The example creates a GUI called address_book. Calling the GUI with the syntax address_book('book', my_contacts) opens the GUI with the MAT-file my_contacts, which contains a list of names and addresses you want to display. Note that you can use any string that is not a valid figure property or the name of a callback in place of the string 'book'. See the reference page for figure for a list of figure properties.


  Callbacks Managing GUI Data with the Handles Structure