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, and P 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.最后就是直接点击所需的文件关联

你可能感兴趣的:(matlab文件关联)