重装系统后恢复matlab文件关联

9 篇文章 0 订阅
重装系统后恢复matlab文件关联  2010-01-19 21:40

重装系统后,若没动MATLAB安装目标,则MATLAB不用重新安装。(同样的原因,可以移动MATLAB安装目标)

对MATLAB相关文件,建立重新关联就行了。

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


cwd=pwd;
cd([matlabroot '/toolbox/matlab/winfun/private']);
fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]}); %重点
cd(cwd);
disp('Changed Windows file associations. FIG, M, MAT, MDL, MEX, andP 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.最后就是直接点击所需的文件关联

 

from:http://www.eefocus.com/czzheng/blog/10-01/183657_c7e69.html


详细参考Matlab的帮助文档:

Starting the MATLAB Program on Windows Platforms ->

Associating Files with MATLAB on Windows Platforms

http://www.mathworks.es/help/techdoc/matlab_env/f8-8880.html#f8-28791

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值