Main Content
savefig
Save figure as FIG-file
Description
savefig(
saves the current figure as a
FIG-file with the specified filename. The FIG-file is stored in a compact format,
and the resulting figure is compatible with MATLAB® R2014b and later.filename
)
Examples
Input Arguments
Tips
You must use MATLAB to open files saved using
savefig
. To open the file, pass the file name to theopenfig
oropen
function. For example:openfig("MyFile.fig")
savefig
saves the full MATLAB figure. To save only part of a figure, such as an axes object, or to save handles in addition to the data, use thesave
function to create a MAT-file.