FUNCTION REFERENCE

Figure.saveas

Save a figure to a file whose extension selects the output format.

Save a figure to a file whose extension selects the output format.

Syntax

saveas(f, filename)

Example

f = figure('Visible', 'off'); plot(1:3); filename = [tempname() '.svg']; saveas(f, filename); delete(filename)

See also: Figure

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