FUNCTION REFERENCE
Figure.print
Write a figure to a file in the graphics format selected by the device option.
Write a figure to a file in the graphics format selected by the device option.
Syntax
print(f, filename, device)Example
f = figure('Visible', 'off'); plot(1:3); filename = [tempname() '.svg']; print(f, filename, '-dsvg'); 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.