Installation guide
Starting MATLAB on Windows Platforms
associate with MATLAB. For example, if you accepted the default options,
double-clicking an M-file in Windows Explorer opens the file in the MATLAB
Editor/Debugger.
Other default options associate MEX-files and P-files with MATLAB in
Windows Explorer, which assigns the file types a M ATLAB icon. However,
double-clicking a file with a
.mex (.mexw32 or .mexw64), or .p extension does
not run or open the f ile in MATLAB.
File Typ e an d R esulting Action
File Typ e Result
FIG-file Opens file in f igure window
M-file Opens file in Editor/Debugger
MAT-file Opens Import Wizard to load the data into the MATLAB
workspace
MDL-file Opens file in Simulink
®
model window
MEX-file Displays MATLAB icon in Windows Explorer
P-file Displays MATLAB icon in Windows Explorer
Other a pplications you use can change Windows file associations. For
example, Microsoft Access might associate files having a
.mat extension.
Then, double-clicking a MAT-file opens Access rather than M ATLAB.
If you double-cl ick a FIG- file, M-file, MAT-fi le, or MDL-fi le and it does not
open in MATLAB, try this instead:
1 In Windows Explorer, right-click a file with one of the extensions listed in
the preceding table, for example,
myfile.mat.
2 From the context menu, select Open With.IfMATLABisoneofthe
choices, select it to open
myfile.mat in MATLAB. If M ATLAB is not one of
the choices, you will need to associate the file type with MATLAB using one
of these techniques:
• “Utility to Change Windows File Associations” on page 1-5
• “Changing File A ssociations for M ATLA B from Windows” on page 1- 5
1-3