Open dialog box for saving variables to MAT-file
uisave
uisave(variables)
uisave(variables,filename)
uisave
, with no arguments, prompts you
for a file name, and then saves all variables from your workspace
to that file.
uisave(
saves
one or more workspace variables listed in variables
)variables
.
The variables
argument is a character vector
or a cell array of character vectors.
uisave(
uses
the specified variables
,filename
)filename
as the default File
name in the Save Workspace Variables dialog box, instead
of the default matlab.mat
.
|
Character vector or cell array of character vectors containing one or more variable names in the current workspace. Use a cell array of character vectors to specify more than one variable. Default: All variables in the current workspace are saved to a MAT-file. |
|
Character vector that specifies the file name that appears in
the File name field when the dialog
box opens. You can omit a file extension, or specify the file extension
as Default: |
Create workspace variables h
and g
,
and then display the Save Workspace Variables dialog box in the current
folder with the default File name set to var1
.
h = 365; g = 52; uisave({'h','g'},'var1');
Clicking Save stores the workspace variables h
and g
in
the file var1.mat
in the displayed folder.