| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
uiopen
uiopen('MATLAB')
uiopen('LOAD')
uiopen('FIGURE')
uiopen('SIMULINK')
uiopen('EDITOR')
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:
Gets the file using uigetfile
Opens the file in the base workspace using the open command
Note A modal dialog box prevents the user from interacting with other windows before responding. For more information, see WindowStyle in the MATLAB Figure Properties. |
Note Only the form uiopen('LOAD') can be compiled into a standalone application. You can create a file selection dialog that can be compiled using uigetfile. |
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.
Typing uiopen('figure') sets the Files of type field to Figures (*.fig):

![]() | uint8, uint16, uint32, uint64 | uipanel | ![]() |

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 |