本文内容均摘抄自网络,备忘。
以管理员身份运行matlab
打开matlab的help窗口,找到MATLAB / User's Guide / Desktop Tools and Development Environment / Startup and Shutdown / Starting and Quitting the MATLAB Program / Association Files with MATLAB on Windows Platforms,往下翻直接找到下面这样的链接,直接点击,MATLAB会帮你自动关联。
Run utility to associate files with .fig extension with MATLAB Run utility to associate files with .m extension with MATLAB Run utility to associate files with .mat extension with MATLAB Run utility to associate files with .mdl extension with MATLAB Run utility to associate MATLAB with MEX-files Run utility to associate MATLAB with P-files Run utility to associate MATLAB with all of these file types: FIG, M, MAT, MDL, MEX, and P
最新版还是有些小改进的,还不错。不过就是有个问题一直存在,就是m文件的图标显示的很难看,一个缩小的matlab图标摆在那里,看起来很别扭,而且双击打开m文件时,不管matlab有没有打开,总是自动打开一个新的matlab,这怎么受得了。。
一般解决