Printing and Exporting Figures with MATLAB    

How to Set the Resolution

The resolution for printing or exporting can only be set on a per figure basis. Use one of the following:

For printing:

For exporting, there is only one method:

Using the Document Properties Dialog Box (Windows Printing Only)

You can only set the resolution for built-in MATLAB printer drivers using this method.

  1. From the Print dialog, click Properties. This invokes a tabbed dialog box named Document Properties. Set the resolution from the second tab. This dialog box is different for each printer; see the Windows documentation for information about how to it.
  2. Click OK to accept the new resolution setting, or Cancel to close the dialog box without changing it.

Using the Printing Options Dialog Box (UNIX Printing Only)

You can only set the resolution for built-in MATLAB printer drivers this method.

  1. From the UNIX Print dialog box, click Options. This invokes the Printing Options dialog box.
  2. Under the Printing Resolution group box, select either Use Same resolution as the screen or Specify resolution in dots per inch.
  3. If you select Specify resolution in dots per inch, enter a value in the Specify resolution in dots per inch text box.
  4. Click OK to accept the new resolution setting, or Cancel to close the dialog box without changing it.

Using the print Command

If you use a Windows printer driver, you can only set the resolution using the Windows Document Properties dialog box.

Otherwise, to set the resolution for printing or exporting, the syntax is

where number is the number of dots per inch. To print or export a figure using screen resolution, set number to 0 (zero).

This example prints the current figure with a resolution of 100 dpi,

This example exports the current figure to a TIFF using screen resolution,


 Choosing a Setting Retaining Background Colors