请注意最新版的matlab。 右键单击. m文件以将其打开,然后查找并将其与meditor.exe关联。 找不到matlab安装程序下的编辑器程序。 只能找到无效的关联,如matlab.exe。 所以干脆用help里的方法比较好:
打开matlab,打开help窗口,然后打开help目录。 第一个条目Matlab-”用户指南- desktoptoolsanddevelopmentenvironment-startupandshutdown-startingandquittingthematllab 单击startingthematlabprogramonwindowsplatforms链接,窗口向下跳转,然后单击associatingfileswithmatlabonwindowsplatforms链接
=====================================
utilitiestosetupfileassociationsonwindowsplatforms.ifyouareviewingthistopicinthematlabhelpbrowser, youcanrunoneoftheutilitiesprovidedheretocreateassociationsinthewindowsenvironmentforcommonfiletypesusedbymatlab.this requires to the HKEY _ classes _ root registry key,whichtypicallyrequirespoweruseroradministratorprivileges。
*
runutilitytoassociatefileswith.figextensionwithmatlab
*
runutilitytoassociatefileswith.mextensionwithmatlab
*
runutilitytoassociatefileswith.matextensionwithmatlab
*
runutilitytoassociatefileswith.mdlextensionwithmatlab
*
runutilitytoassociatematlabwithmex-files
*
runutilitytoassociatematlabwithp-files
*
runutilitytoassociateMATlabwithallofthesefiletypes : fig,m,mat,MDL,MEX,and P
thefiletypeiconinthewindowsexplorertoolmightnotreflectthechangeimmediately。
=====================================
直接单击上面的链接runutilitytoassociatefileswith.mextensionwithmatlab就可以了。 然后回到windows下,找到. m文件并直接双击,世界就会变亮!
取消
评论