"ahahah" wrote in message <firstname.lastname@example.org>... > 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 re-registering 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 m-file (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 64-bit 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.