MATLAB 2013b. m file association

Source: Internet
Author: User

Using the green version of MATLAB cannot automatically associate the. m file, the solution found on the web is to run the following command in MATLAB:

Cwd=PWD;CD ([Matlabroot'\toolbox\matlab\winfun\private']); FILEASSOC ('Add',{'. M','. MAT','. Fig','. P','. MDL',['.'Mexext]}); CD (CWD);d ISP ('Changed Windows file associations. FIG, M, MAT, MDL, MEX, and P files is now associated with MATLAB.');

But the runtime prompts: Undefined function ' FILEASSOC ' for input arguments of type ' cell '.

Originally MATLAB 2013 modified the path of the fileassoc.m file, the new path is: [Matlabroot ' \mcr\toolbox\matlab\winfun\private '], so execute the following command to solve the problem:

Cwd=PWD;CD ([Matlabroot'\mcr\toolbox\matlab\winfun\private']); FILEASSOC ('Add',{'. M','. MAT','. Fig','. P','. MDL',['.'Mexext]});CD (CWD);d ISP ('Changed Windows file associations. FIG, M, MAT, MDL, MEX, and P files is now associated with MATLAB.');

After execution, locate the. m file you want to open, right-click Open with, select the default program, check matlab (r2013b), and tick "Always use the selected program to open this file", OK. Double-clicking the. m file will be turned on by default using MATLAB editor.

MATLAB 2013b. m file association

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.