Creating Graphical User Interfaces    

Example: Displaying an Image File

This example shows how to display an image file on a GUI. The example

To build the example:

  1. Open a blank template in the Layout Editor.
  2. Drag an axes into the layout area.
  3. Select M-file editor from the View menu.
  4. Add the following code to the opening function:

When you run the GUI, it appears as in the following figure.

The preceding code performs the following operations:


  How the GUI and Dialog Work Selecting GUI Options