恢复matlab文件关联方法


在MATLAB命令窗口执行如下命令,即可。

commandwindow; 
cwd=pwd;
cd([matlabroot '\toolbox\matlab\winfun\private']);
fileassoc('add','.fig') ;
cd(cwd);
disp('Changed Windows file association. FIG-files are now associated with MATLAB.')

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.')

或者

1.打开matlab,运行 help
2.在help窗口中搜索Utility to Change Windows File Associations
3.找到Utility to Change Windows File Associations的对应解释
4.最后就是直接点击所需的文件关联



注:以上两种方法对于'.m','.mat','.fig','.p','.mdl'文件类型本来没有关联程序的时候直接就好使,但是当这些文件类型已经 关联了其他程序,那么还需再重新关联到MATLAB上。以上两种方法就是将MATLAB程序添加到windows系统的文件关联程序目录里。

posted on 2012-03-13 08:26  龖龖  阅读(1750)  评论(0编辑  收藏  举报

导航