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

来源:互联网 发布:淘宝上刘雨晴 编辑:程序博客网 时间:2024/06/05 05:06


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

参考文档:ImageProcessing Toolbox™ 6
User’s Guide

 

           作者:joy

          联系方式:joy543@live.com

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

安装好matlab之后,发现之前的.m文件的打开方式不是matlab,点击右键选择默认打开方式也没有找到matlab。这个时候该怎么办呢?

方法:在matlabcommandwindow里输入以下语句。

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

 

0 0
原创粉丝点击