vomov
Posts:
9
From:
Nijmegen, Netherlands
Registered:
10/1/09


Re: associating .m files with matlab
Posted:
Jun 12, 2012 4:34 AM


"ahahah" wrote in message <jr5mnn$19m$1@newscl01ah.mathworks.com>... > Sorry, but if you modify windows register the only thing you do is to delete the association with file, but it's not always true (and i'm in this case) that it takes to solve the problem. > > After deleting with regedit, after reboots, etc... always the same problem! > Clicking on .m, .mat, .fig open Matlab but not the clicked file! > > Please don't say to read the help because, again, it's not the solution. > I'm running r2012a 64bit on Win7 64bit.
If the help doesn't help, even after deleting the file associations, it either means that something is reregistering the extensions as you delete them, or that something is preventing deleting corresponding values in regedit.
However, what you're describing is something else; matlab opens, but does not open the corresponding mfile (or fig, or whatever), which means that Matlab is started to handle the file, but isn't passed the actual file. Presumably, you've associated the files with the 'Matlab starter' (or whatever it's called), and not with Matlab itself.
While the usual way would be to uninstall Matlab, then delete the registry entries detailing the relevant extensions (*.m, *.mat, *.fig), and finally reinstalling Matlab, but it should be possible to register the extensions with the correct *.exe, which should be ""C:\Program Files\MATLAB\R2011a\bin\matlab.exe", assuming you're running 64bit Matlab on and x64 PC.
I've had a similar problem, but after deleting the entries in the registry and using the commands found in the help the problem disappeared.

