Menu
Logical open file specified as logical true (1), logical false (0), true, false, or a MATLAB expression that evaluates to logical true or false.If tf is set to true, 1, or evaluates to 1, then the Open dialog box does not appear and MATLAB attempts to open the specified file in the appropriate tool.
name
— File or variable name
character array | string scalar
File or variable name, specified as a character array or string scalar. If
name
does not include an extension, then MATLAB searches for variables and files according to the Function Precedence Order. If name
is a variable, the open
function opens it in the Variables editor. Otherwise, the open
function performs one of these actions based on the file extension..m or .mlx | Open code file in MATLAB Editor. |
.mat | Return variables in structure A when called with the syntax A = open( . |
.fig | Open figure in Figure window. |
.mdl or .slx | Open model in Simulink®. |
.prj | Open project in the MATLAB Compiler Deployment Tool. |
.doc* | Open document in Microsoft® Word. |
.exe | Run executable file (only on Windows® systems). |
.pdf | Open document in Adobe® Acrobat®. |
.ppt* | Open document in Microsoft PowerPoint®. |
.xls* | Start MATLAB Import Wizard. |
.htm or .html | Open document in MATLAB browser. |
.slxc | Open report file for the Simulink cache file. |
In MATLABOnline,
open
only supports opening MAT-files, figures, code files (.m
or .mlx
), and HTML documents.Data Types:
char
| string