Matlab default app to open .m files
Ältere Kommentare anzeigen
I am trying to associate Matlab with opening of .m files
It is not showing up in my default apps so I cannot make the change as specified below...
Any other ideas?
https://uk.mathworks.com/matlabcentral/answers/94655-how-do-i-associate-file-types-with-a-certain-application For Windows 8, Windows 10, and if the file extension is not in a list of file extensions:
1. Right click on any .m file in Windows and select Open With.
2. Select the More Apps option to show a full list of programs installed on your computer.
3. Select MATLAB and make sure the box at the bottom is checked that says "Always use this app to open .m files"
6 Kommentare
Subarna Giri
am 22 Apr. 2018
the matlab does not showing in the apps list. What to do?
Cam Salzberger
am 25 Apr. 2018
Subarna, this sounds like a different issue than the one Daniel was experiencing. You'll probably get better assistance if you post a new question with more details about your setup, installed MATLAB versions, and symptoms.
-Cam
Ruonan Yang
am 18 Sep. 2018
Hi Daniel, Have you solved the problem? I met the same problem. I have installed MATLAB 2018a but m.file doesn't associate with MATLAB. Even I selected "open with" and selected MATLAB.exe, MATLAB didn't show in the program lists. But if I selected other programs, they will show up.
Noora Alaamry
am 25 Feb. 2021
me too I have the same problem
talib
am 27 Aug. 2023
hi i am mechanical engineer and working on matlab for my working. can you tell me how can i get source program from matlab? kindly guide me......thanks
Walter Roberson
am 27 Aug. 2023
My answer at https://www.mathworks.com/matlabcentral/answers/362994-matlab-default-app-to-open-m-files#comment_2862252 listed all of the known (legal) ways to get the source code to MATLAB.
Antworten (5)
Cam Salzberger
am 24 Okt. 2017
23 Stimmen
Hello Daniel,
I'm assuming you are on Windows 8 or 10. Here are instructions for Windows 10, which I believe applies to 8 as well.
If MATLAB is installed, but not showing in the list of available apps, you can:
- Click the "Look for another app on this PC" link. It will open a file-selector window.
- Navigate to MATLAB's installation directory.
- Find the matlab.exe file inside the bin directory. On Windows, this is typically C:\Program Files\MATLAB\(release)\bin\matlab.exe. If it is not there, you can always run matlabroot from within MATLAB to find out where it's installed.
- Select that executable and hit "OK".
Alternatively, you can go to Settings -> Apps -> Default apps -> Choose default apps by file type. If the file extension you are looking to change is missing, it's probably easier to do the first workflow.
-Cam
8 Kommentare
Guido Francesco Frate
am 28 Dez. 2017
I swear that i did all these things but it is not working for me, any other ideas? (if i manually open Matlab 2017a and then i open any .m files, all works fine, but if i try to open a .m file directly the 2016a version will open). Thank you in advance for your help.
Cam Salzberger
am 9 Jan. 2018
If you tell Windows to always use a specific program (with full path) to open a particular file extension, I'm not sure why it ignores that setting. You could possibly try moving R2017a up on the PATH environment variable (in front of R2016a).
This answer may be related, though not exactly the same situation.
Lígia Martins d'Oliveira
am 8 Mai 2018
Hello! I have the same problem and I tried assigning matlab.exe like you say, but matlab does not open the file if I do that. If I open the file, matlab simply starts a new instance, the file does not load.
SAMARJEET DAS
am 3 Apr. 2019
Thank you. It worked for me.
Ross Kohar
am 2 Apr. 2020
I had the same problem and this finally solved my issues, Thanks!!
Zain Mughal
am 10 Jun. 2022
Thankyou for your help
talib
am 27 Aug. 2023
hi i am mechanical engineer and working on matlab for my working. can you tell me how can i get source program from matlab? kindly guide me......thanks
Walter Roberson
am 27 Aug. 2023
To get the source program for MATLAB, you would need to get a job with Mathworks. (Even then, you would probably have to move up several levels to be authorized to access the entire source code.)
Or there is always the option of purchasing Mathworks -- the entire company, that is. It is a privately held company not on the stock market, so no-one really knows how much the owners would ask for it. I would be pretty sure it would be over $US 1 billion.
Lígia Martins d'Oliveira
am 8 Mai 2018
Bearbeitet: Walter Roberson
am 13 Dez. 2018
9 Stimmen
I suggest using the fix provided here: https://nl.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-fix
I had the same problem as you and it worked fine for me (R2018a, Windows 10)
1 Kommentar
Umair Mughal
am 15 Okt. 2019
Thanks brother, it also worked for me....
Claudia Lopez
am 10 Dez. 2018
0 Stimmen
Hello, I just downloaded MATLAB R2018b and I am unable to open up any .m files in my desktop app. Please help by giving step by step instructions as i am very confused how to solve this issue.
Jonathan Portillo
am 13 Dez. 2018
0 Stimmen
I cannot open m-files or the simulink model by just clicking on file. (I need to use the Open File with another app) how do i fix this issue for Matlab R2018a?

2 Kommentare
Walter Roberson
am 13 Dez. 2018
Use the contribution mentioned by Ligia https://www.mathworks.com/matlabcentral/answers/362994-matlab-default-app-to-open-m-files#answer_319245
Jonathan Portillo
am 13 Dez. 2018
Thank you so much!
Dhnynesh
am 29 Mai 2024
0 Stimmen
%Assignment 1, Sanket Posa, Roll No: -TCH 44 , Date-25-5-24
%Q1
clc
a=3;
b=a+2;
c=b*a;
d=b/c;
%Q2
A= [1,2, 3;4,5,6];
%3
M=linspace (1, 6, 6);
%4
N=2:5:10;
%5
O= ones (3);
%6
z=zeros (5);
%7
R= [1, 2, 3;4, 5, 6;7 , 8, 9];
%8
X=0;
s=sin (X);
in = sin (X);
%10;
X=3;
in=acos (X);
%11
X=2;
t=tan(X);
in=atan (X);
%12
X=4;
n=cot (X);
in=acot (X);
%12
Absolute=abs (R);
Exponential=exp (R);
logarithm=log(X);
R=round (X);
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!