Delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m in the registry (type "regedit" in the start menu) and the matlab editor works and the icon for m-file is correct. That is the key operation to solve the problem.
"nishant " <firstname.lastname@example.org> wrote in message <email@example.com>... > 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