Borrar filtros
Borrar filtros

How do you reopen a corrupted Matlab file?

13 visualizaciones (últimos 30 días)
Andrew Wong
Andrew Wong el 4 de Ag. de 2022
Respondida: Walter Roberson el 9 de Jun. de 2023
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!

Respuestas (2)

Nithin Kumar
Nithin Kumar el 9 de Jun. de 2023
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 el 9 de Jun. de 2023
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.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by