frudawski

# saveplot

The saveplot function allows for easy figure export in Matlab and Octave.

Note 1: An empty function call will open a popup menu for saving the current figure.

Note 2: The function creates an invisible copy of the to be saved figure or axes. This might lead to different appearance of the saved figure. You can try the export_fig function from Matlab’s File Exchange as an alternative.

Usage:

file = saveplot(filename,'parameter','value')

Where:

Examples

Save the current figure using a popup menu:

saveplot

Save the current figure as plot.pdf using a popup menu:

saveplot('plot.pdf','fileformat','pdf')

Save the current figure as plot.svg in the current folder without popup menu:

saveplot('plot','fileformat','svg','path','relative','popup','off')