Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Printing and Saving

Print and export to standard file formats

Functions

print Print figure or save to specific file format
saveas Save figure to specific file format
getframe Capture axes or figure as movie frame
savefig Save figure and contents to FIG-file
openfig Open figure saved in FIG-file
orient Hardcopy paper orientation
hgexport Export figure
printopt Configure printer defaults

Topics

Print Figure from File Menu

This example shows how to print a figure, preserve the background color, and control the printed figure size.

Copy Figure to Clipboard from Edit Menu

This example shows how to copy a figure to the clipboard and how to set copy options.

Save Figure to Open in Another Application

This example shows how to save a figure to a specific file format.

Save Figure to Reopen in MATLAB Later

This example shows how to save a figure so that you can reopen it in MATLAB® later.

Customize Figure Interactively Before Saving

This example shows how to use the Export Setup window to customize a figure before saving it.

Save Figure at Specific Size and Resolution

This example shows how to control the dimensions of printed or saved figures.

Save Figure with Minimal White Space

This example shows how to save a figure so that the saved figure has a tight margin of white space around the axes.

Save Figure Preserving Background Color

This example shows how to ensure that the colors of the saved figure match the colors on the display.

Save Axes Without Saving UIControls

To save only the axes from a figure that has uicontrols, you can use print with the '-noui' option.

Was this topic helpful?