Opening .mat file after installing Matlab Runtime

13 次查看(过去 30 天)
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
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
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 个评论
Image Analyst
Image Analyst 2022-7-28
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by