savefigures(varargi​n)

Versión 1.1.0.0 (6,8 KB) por Toby
Save Figures
144 Descargas
Actualizado 28 sep 2017

Ver licencia

% Saves all open figures (or those specified by input figureHandles) to specified output image type.
% Output filename is based on current axes title for each figure.
%
% syntax:
% savefigures(figureHandles, outputDirectory)
%
% where:
% figureHandles (optional) - figure handle or array of figure handles to save
% defaults to all current figures if no argument or
% empty argument ([],{},etc)
% outputDirectory (optional) - directory to place figures in
% defaults to uigetdir dialog (if no argument) or current
% directory (if argument is empty - [],'',etc)
%
% additional input parameters are available:
% 'outputFormat' - image formats used with the print function; defaults to '-dpng'
% 'orientation' - 'Portrait' or 'Landscape'; defaults to 'Portrait'
% 'paperType' - standard page sizes; defaults to 'usletter'
% 'margin' - margin to use when saving images (units correspond to paperType); defaults to 0.5
% 'saveFigFlag' - logical flag to save .fig file in addition to printed image; defaults to false
%
% these parameters are set by:
% savefigures(figureHandles,outputDirectory,'parameter','value')
%

Citar como

Toby (2026). savefigures(varargin) (https://la.mathworks.com/matlabcentral/fileexchange/59061-savefigures-varargin), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Printing and Saving en Help Center y MATLAB Answers.
Versión Publicado Notas de la versión
1.1.0.0

Added more robust check for characters not allowed in saved filenames (based on figure titles).

1.0.0.0