Image Processing Toolbox | ![]() ![]() |
Printing Images
If you want to output a MATLAB image to use in another application (such as a word-processing program or graphics editor), use imwrite
to create a file in the appropriate format. See Writing a Graphics Image for details.
If you want to print the contents of a MATLAB figure (including nonimage elements such as labels), use the MATLAB print
command, or choose the Print option from the File menu of the figure window. Note that if you produce output in either of these ways, the results reflect the settings of various Handle Graphics properties. In some cases, you may need to change the settings of certain properties to get the results you want.
Here are some tips that may be helpful when you print images:
InvertHardcopy
figure property.
PaperPositionMode
property to auto
. When PaperPositionMode
is set to auto
, the width and height of the printed figure are determined by the figure's dimensions on the screen. By default, the value of PaperPositionMode
is manual
. If you want the default value of PaperPositionMode
to be auto
, you can add this line to your startup.m file.
For detailed information about printing with File/Print or the print
command (and for information about Handle Graphics), see "Printing and Exporting Figures with MATLAB in the MATLAB Graphics documentation. For a complete list of options for the print
command, enter help print
at the MATLAB command line prompt or see print
in the MATLAB Function Reference.
![]() | Texture Mapping | Troubleshooting | ![]() |