When you install MATLAB® on Windows® platforms, the installer sets up associations between certain file types and MathWorks® products. When you double-click a particular file type, identified by its file extension, Windows starts MATLAB and opens the file in the appropriate tool. For information about MathWorks file extensions, see MathWorks File Extensions.
File associations for the Windows Explorer tool do not affect
what happens when you open one of these file types from within MATLAB. MATLAB acts
on the file using the MATLAB tool associated with that file type. For example, if your system associates
with the Access™ application, when you open a MAT-file from within MATLAB,
it opens the Import Wizard to load the data. To open a
with the Access application, right-click
and from the context menu, select Open With,
then the Access application.
To associate a different file type with MATLAB, use the Windows Default Programs control pane. On Windows 7 systems:
Click the Windows Start menu.
Select Control Panel and View by: Category.
Select Default Programs.
Select Associate a file type or protocol with a program.
In the Set Associations window, find the file extension in the displayed list and either double-click it or click Change Program.
with dialog box opens, which lists other programs that
might be recommended for this file extension. If it is a file extension
associated with MATLAB, such as
list includes all the versions of MATLAB you have installed.
Click OK in the Open With dialog box.
To close the Set Associations window, click Close.
For more information about using the Default Programs control pane, see your Windows documentation.
Sometimes double-clicking a MATLAB file in Windows Explorer opens a new instance of MATLAB. To work around this issue, uninstall versions of MATLAB, release R2010a or earlier. Then reinstall MATLAB R2010b or later.
Alternatively, change the security setting on the
to allow the
Users group to write to the file.
For more information, see http://www.mathworks.com/matlabcentral/answers/93468-why-is-a-new-instance-of-matlab-opened-when-i-double-click-on-a-matlab-file-in-windows-explorer-even.