Date: Oct 9, 2010 8:15 AM
Author: nishant
Subject: associating .m files with matlab

i have uninstalled matlab 2009a n switched to matlab 2010b but now the  .m  files  do not open..they give the option as windows do not know the file....i've also made changes to it's path n made it open with matlab C:\Program Files\MATLAB\R2010b\bin\win64 but it again launches an instance of matlab but not the file in the editor....
I simply end up getting two or three instances of matlab but not the editor...
i have also tried commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.m') ;cd(cwd); disp('Changed Windows file association. M-files are now associated with MATLAB.');
but it throws error saying cannot modify the registry....
i am using win7 64bit...this problem is really irksome....please help