本系列文章都是通过自己的学习经验,以及啃文档所写。如需转载,请注明出处
参考文档:ImageProcessing Toolbox™ 6
User’s Guide
作者: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.出现这样的标志就对了!
困扰了很久的问题,今天又翻出来解决了。开心!