hello, i want to read the code of a matlab file but i get back something like this.
Is there a way to read the file?

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 27일

0 개 추천

Hi,
There might a copuple of different cases of this issue.
Easy solution can be to open that file with a notepad and then copy the code into MATLAB editor.
Good luck.

댓글 수: 1

theocharis tselikis
theocharis tselikis 2021년 5월 27일
hi,
Thanks for the response.It didn't work, but let me help you. I have a matlab app in my pc that runs a couple of .m files. This app was created in 2014 and runs with MATLAB Compiler Runtime version 7.15. I want to read these files to convert in java code.
Thanks in advance

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

Walter Roberson
Walter Roberson 2021년 5월 27일

0 개 추천

The .m files that are stored inside a application compiled with MATLAB Compiler, are AES encrypted. It is deliberate that you should not be able to read the files.
If you need the source code for an .m file that is compiled with MATLAB Compiler, you should go back to the source of the compiled application and ask for the source code (but do not be surprised if they decline to provide it.)

댓글 수: 2

theocharis tselikis
theocharis tselikis 2021년 5월 27일
편집: theocharis tselikis 2021년 5월 27일
would u like to give me an email to send you the code? It is a must to open these files for my diploma thesis
Walter Roberson
Walter Roberson 2021년 5월 27일
I would not be able to open the files without breaking the encryption, which is something that I have no interest in doing.
Furthermore, the encrypted files are not in source code: they are encrypted versions of pcode files, so there would be an additional step of decoding the decrypted files.
My understanding is that these things are technically possible for a sufficiently determined person, but I am not sufficiently determined.
The legalities of the situation vary according to jurisdiction. In my country, in order to break the encryption without violating my Mathworks license, I might be required to prove that I am considered a "security researcher". Which is not something I could reasonably claim to be at present.
If you need the source code for a compiled MATLAB application, you should be talking to the people who published the application.

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

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2021년 5월 27일

댓글:

2021년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by