I recently installed the Matlab Runtime R2022a on my Windows 10 machine.
I would like to change the default app for opening .mat files from access to matlab but I am not sure how to locate the executable file even though I know where my Runtime was installed.

 채택된 답변

Walter Roberson
Walter Roberson 2022년 7월 28일

0 개 추천

https://www.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-shortcut-fix can help you change the file association for .mat away from Access to something else. However, it is designed to redirect to interactive MATLAB, not to something compiled using MATLAB Runtime.
You can install a program such as Octave to open .mat files; I believe there are also Python modules that can open them as well.
MCR (MATLAB Component Runtime) is a support library, which must be called from a program compiled by MATLAB Compiler or MATLAB Compiler SDK.

추가 답변 (1개)

Image Analyst
Image Analyst 2022년 7월 28일

0 개 추천

I'm not sure I understand. The runtime library is used when you get a MATLAB program that has been compiled into a standalone executable and you want to run their program without having the full MATLAB IDE desktop version. You should know where the program lives - the one that you want to open your .mat file with. Moreover, if you're going to double click the .mat file and expect it to open their program, then they must have programmed it to expect a file coming in via the command line. If they didn't, and you defined the .mat file to launch their program, then it will just launch their program but not read in your .mat file automatically.

댓글 수: 3

Ash
Ash 2022년 7월 28일
all I need is to open the binary .mat file and look at it. I am not sure how to do that. I thought by installing the said software I can open it but I don't know how.
What does "look at it" mean? You can open it in Notepad if you want. Or many editor programs that can display the image as characters or hexadecimal numbers. But how will that help you?
Ash
Ash 2022년 7월 28일
I do not have the Matlab installed but only its runtime version. Currently, the default app for opening the .mat files is set to Microsoft Access. I want to change that into Matlab but I am not sure how to find the corresponding directory.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

질문:

Ash
2022년 7월 28일

답변:

2022년 7월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by