您的位置:首页 > 其它

五、如何修改m文件的打开方式?

2015-03-12 17:24 369 查看


本系列文章都是通过自己的学习经验,以及啃文档所写。如需转载,请注明出处

参考文档:ImageProcessing Toolbox™ 6

[b]User’s Guide
[/b]

作者:joy

联系方式:joy543@live.com

五、如何修改m文件的打开方式?

安装好matlab之后,发现之前的.m文件的打开方式不是matlab,点击右键选择
默认打开方式也没有找到matlab。这个时候该怎么办呢?
方法:在matlab
的commandwindow里输入以下语句。
cwd=pwd;cd([matlabroot'\toolbox\matlab\winfun\private']);fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.'mexext]}); %重点
cd(cwd);disp('ChangedWindows file associations. FIG, M, MAT, MDL, MEX, and P files are nowassociated with MATLAB.')

但是出现问题是:Nopermissions to modify the registry
此时,将matlab关闭,用管理员身份重新打开就可以了!
ChangedWindows file associations. FIG, M, MAT, MDL, MEX, and P files are nowassociated with MATLAB.出现这样的标志就对了!

困扰了很久的问题,今天又翻出来解决了。开心!
参考:http://blog.chinaunix.net/uid-20692368-id-3970918.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: