Wayne
Posts:
1
Registered:
11/28/12
|
|
Re: associating .m files with matlab
Posted:
Nov 28, 2012 9:39 AM
|
|
DO NOT manually delete registry settings nor use fileassoc!
In R2010b, a new method for registering file associations was introduced. It allows multiple installed versions of MATLAB to have their own file associations (i.e. no more m-file progid). This allows you to easily switch your file associations from one version of MATLAB to another. To avoid the problem below, uninstall the pre-R2010b version of MATLAB before installing any of these newer versions. If you?ve already screwed things up, then reinstall the new version. These newer versions can be installed or uninstalled in any order.
"Feng Shengzhen" wrote in message <jnsm1i$hpo$1@newscl01ah.mathworks.com>... > 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 " <mishra.nishant@live.com> wrote in message <i8pmcb$doc$1@fred.mathworks.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
|
|