FUNCTION REFERENCE

Figure.exportgraphics

Export a figure to a graphics file.

Export a figure to a graphics file.

Syntax

exportgraphics(f, filename)

Example

f = figure('Visible', 'off'); plot(1:3); filename = [tempname() '.svg']; exportgraphics(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.