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 Plot as Image or Vector Graphics File
This example shows how to save plots 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 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 Plot 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 UI Controls
To save only the axes from a figure that has uicontrols, you can use
print
with the '-noui'
option.