<< rotate3d | Graphics functions | scatter >> |
saveas(fig, filename) |
saveas(fig, filename, formattype) |
figure object.
character vector or scalar string: destination filename.
character vector or scalar string: extension filename.
saveas save figure to specific file format.
supported formats:
Option | Format | File extension |
---|---|---|
svg | SVG (scalable vector graphics) | .svg |
Full page Portable Document Format (PDF) color | ||
png | PNG 24-bit | .png |
jpg | JPEG 24-bit | .jpg |
x = -2:0.25:2;
y = x;
[X,Y] = meshgrid(x);
F = X.*exp(-X.^2-Y.^2);
surf(X,Y,F);
saveas(gcf(), 'svg-file.svg');
gcf.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET