Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

uiopen - Open file selection dialog box with appropriate file filters

Syntax

uiopen
uiopen('MATLAB')
uiopen('LOAD')
uiopen('FIGURE')
uiopen('SIMULINK')
uiopen('EDITOR')

Description

uiopen displays a modal file selection dialog from which a user can select a file to open. The dialog is the same as the one displayed when you select Open from the File menu in the MATLAB desktop.

Selecting a file in the dialog and clicking Open does the following:

uiopen or uiopen('MATLAB') displays the dialog with the file filter set to all MATLAB files.

uiopen('LOAD') displays the dialog with the file filter set to MAT-files (*.mat).

uiopen('FIGURE') displays the dialog with the file filter set to figure files (*.fig).

uiopen('SIMULINK') displays the dialog with the file filter set to model files (*.mdl).

uiopen('EDITOR') displays the dialog with the file filter set to all MATLAB files except for MAT-files and FIG-files. All files are opened in the MATLAB Editor.

Examples

Typing uiopen('figure') sets the Files of type field to Figures (*.fig):

See Also

uigetfile, uiputfile, uisave

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS