FUNCTION REFERENCE

savefig

Save a figure to a file.

Save a figure to a file.

Syntax

savefig('plot.mrfig')

Syntax

savefig(n, 'plot.mrfig')

Saves the current figure, or figure n. Extensions are .fig, .mrfig (MatRust native) or .mfig.

Example

plot(1:3); savefig('plot.mrfig')   % figure saved

Differences from MATLAB: Statement only. No figure arrays, version or visibility options.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.