Printing and Exporting Figures with MATLAB    

Setting the Export File Format

This section describes what a file format is, which formats are available, and how to set the file format. It also includes detailed information about some of the formats. The main topics discussed are:

What is a File Format?

A file format is a specification for storing and organizing data in a file. MATLAB supports many different file formats.

Some formats are bitmap (raster), and others are vector. Color support varies; a format may support color, grayscale, or black and white. Some of the supported formats come in different varieties. For example, there are color and grayscale varieties of the EPS format. These and other attributes of formats are discussed in detail under More About MATLAB Format Types.

Default Format

The default format depends on the interface you use to export. When you export to a file using the user interface, EMF (EPS on UNIX) is the default format. If you export to the clipboard using the user interface, the default format depends upon the nature of the figure. See Clipboard Formats for more information.

If you use the print command to export to a file or to the clipboard, there is no default format; you must set one.

Supported Formats and Related Options

The table below lists and shows how to set all of the available export formats and related options. The first column indicates the format's color, whether it's a built-in MATLAB or Ghostscript format, and when it's a bitmap format, it also shows a bit depth. Some formats are only available when you use the print command. To check this, see the second column.

For more information on how to select and use these formats, see


 Example - Exporting to a TIFF File Details About Selected File Formats