New instance of matlab opening every time I double click a matlab file

Hi Every time i double click a matlab file (*.m, *.mat or *.fig) in an explorer windows, a new MATLAB instance starts, even if another one is already opened.
I read the answer here.
The matlabroot folder, however, is on a shared network drive for which I don't have administrator right (and I cannot ask for them).
To solve the issue I looked at the answer here.
I copied the pathdef.m file in my userpath folder. However the issue is still present. How can I solve it?
I'm using MATLAB 2015b

1 Comment

+1 for a clearly asked question. Compact, but includes relevant info and links.

Sign in to comment.

 Accepted Answer

Hi Luca. Did you try the second part of the solution provided in the link ?
Please run the file exchange code and restart MATLAB.
https://www.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-fix
This page explains how to re-register the .MAT extension, but you can follow the same instructions for other file types.

5 Comments

The installation is on a shared drive, so it doesn't appear in the list of available programs installed when I click "Set your Default programs". However clicking in "Associate a file type or protocol with a program" the .m files are associated with the MATLAB Starter Application (see screenshot.
This didn't work, but the answer by Azad (which hadn't been selected as a solution) worked perfectly.
Thank you for having me going back to the link and pay more attentions to secondary solutions :)
Great. I meant to suggest the same thing. Pasted the wrong link. :) Glad you got that sorted out. Edited my answer as well now.

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!