필터 지우기
필터 지우기

How do you reopen a corrupted Matlab file?

조회 수: 13 (최근 30일)
Andrew Wong
Andrew Wong 2022년 8월 4일
답변: Walter Roberson 2023년 6월 9일
At first, opening my matlab .mlx file was straight forward. However, recently a message had started to appear where it says "Error loading *file location and file name*" and then nothing would show up. I'm not sure how to resolve this, and I don't want to have to type my code all over again. Any tips will help, thanks!

답변 (2개)

Nithin Kumar
Nithin Kumar 2023년 6월 9일
Hi Andrew,
I understand that you are facing an issue while opening a MATLAB file­­. Kindly refer to the following possible solutions to fix this error.
  • Incorrect file path or name: Check that you have entered the correct file path and name. Make sure that the file you are trying to open exists in the location you specified. Check for typos and make sure that you have used the correct syntax.
  • Corrupted file: The file you are trying to open may be corrupted. Try opening another file to see if MATLAB opens it successfully. If the issue is only with one file, then the file is likely corrupted, and you should recreate the file.
  • Missing or incompatible dependencies: MATLAB requires some dependencies to function properly. Missing or incompatible dependencies can cause the error message to appear. Check that your MATLAB installation is up to date and that all required software is installed.
  • Insufficient system resources: If you have insufficient system resources such as RAM or disk space, MATLAB may fail to open files. Check your system resources and free up space if necessary.
I hope this answer helps you.

Walter Roberson
Walter Roberson 2023년 6월 9일
If you are using Linux then you might get caught by a kernel change to the handling of tempfs. Mathworks created updates for some releases to deal with this.
Execution of mlx files is by extracting the MATLAB code from the zipped directory of XML files into the temporary directory, and executing the resulting m file. However a Linux kernel change interfered with copying and linking files, which made some matlab operations unstable.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by