Last active
August 29, 2015 14:01
-
-
Save HereChen/cd7843f001452c90dafa to your computer and use it in GitHub Desktop.
matlab: associate .m with matlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Run matlab as administrator | |
% solve the problem opening a new matlab after double click m-file. | |
cwd = pwd; | |
cd([matlabroot '\toolbox\matlab\winfun\private']); | |
fileassoc('add','.m') ; | |
cd(cwd); | |
disp('Changed Windows file association. M-files are now associated with MATLAB.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment