Open dialog box for selecting files to load into workspace
uiopen
uiopen(type)
uiopen(filename)
uiopen(filename, TF)
uiopen
displays the dialog
box with the file filter set to all MATLAB® files (with file extensions *.m
, *.mlx
, *.mat
, *.fig
, *.mdl
,
and *.slx
).
uiopen(
sets
the file filter according to the type
)type
.
uiopen(
displays filename
)filename
as
the default value for File name in the dialog
box and lists only files having the same extension.
uiopen(
directly
opens file filename
, TF
)filename
without displaying a dialog
box if TF
is true, and displays the dialog box
if TF
is false.
Note: The visual characteristics of the dialog box depend on the operating system that runs your code. For instance, some operating systems do not show title bars on dialog boxes. |
|
Character vector that specifies the kind of file to show in
the dialog box (the file filter). Acceptable values for
| ||||||||||||
|
The name of the file to open, specified as a character vector
that includes the file extension. The filename can be a wildcard character
plus extension. For example, | ||||||||||||
|
A MATLAB expression that evaluates to |
Filter to display only FIG-files by setting the Files of type field to Figures (*.fig)
:
uiopen('figure')
In MATLAB code or in a command:
To open a file appropriately based on its file extension,
use the open
function.
To open a file in the Editor, use the edit
function.
To open a MAT-file and load its contents into the
workspace, use the load
function.
To open a FIG-file, use the openfig
function.
To open a file in an application in Microsoft® Windows®,
use the winopen
function.