zoukankan      html  css  js  c++  java
  • MATLAB 2013b .m 文件关联

    使用绿色版的MATLAB无法自动关联.m文件,在网上查到的解决办法是,在MATLAB里运行如下命令:

    cwd=pwd;
    cd([matlabroot '	oolboxmatlabwinfunprivate']);
    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.');

    但运行时却提示:Undefined function 'fileassoc' for input arguments of type 'cell'.

    原来MATLAB 2013中修改了fileassoc.m文件的路径,新的路径为:[matlabroot 'mcr oolboxmatlabwinfunprivate'],因此执行如下命令便可解决问题:

    cwd=pwd;
    cd([matlabroot 'mcr	oolboxmatlabwinfunprivate']);
    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.');

    执行完毕后,找到想要打开的.m文件,右键->打开方式->选择默认程序,选中MATLAB (R2013b),并勾选“始终使用选择的程序打开这种文件”,确定即可。以后双击.m文件会默认使用MATLAB Editor打开。

  • 相关阅读:
    Hibernate
    Mysql
    JavaWeb
    Springboot
    spring MVC
    spring
    mybatis学习
    ftp客户端封装
    win10子系统 wsl开机启动ssh服务
    eclipse 终于官方支持代码模糊提示了
  • 原文地址:https://www.cnblogs.com/vive/p/4672778.html
Copyright © 2011-2022 走看看