也就是关联扩展名啊执行以下代码>> 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.')>>