MATLAB关联文件script

来源:互联网 发布:数控编程用的语言 编辑:程序博客网 时间:2024/06/05 00:21
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, and P files are now associated with MATLAB.')
原创粉丝点击