Printing and Exporting Figures with MATLAB    

Excluding User Interface Controls from Output

User Interface controls (uicontrols) are objects that you create and add to a figure. For example, you can add a button to a figure that when clicked, conveniently runs another M-file. By default, uicontrols are included in your printed or exported figure. This section shows how to exclude them.

Using Page Setup

  1. Select Page Setup from the figure window's File menu and select the Axes and Figure tab.
  2. Under Figure controls, deselect Print UIControls.
  3. Click OK.

Using the print Command

Use the -noui switch. This example specifies a color PostScript driver and excludes UI controls.

This example exports the current figure to a color EPS file and excludes UI controls.


 Font Support for Printing Producing Uncropped Output