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:
-r
switch with the print
command
For exporting, there is only one method:
-r
switch with the print
command
Using the Document Properties Dialog Box (Windows Printing Only)
You can only set the resolution for built-in MATLAB printer drivers using this method.
Using the Printing Options Dialog Box (UNIX Printing Only)
You can only set the resolution for built-in MATLAB printer drivers this method.
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 | ![]() |