Error using load Can't read file

237 visualizaciones (últimos 30 días)
Zhentong LIU
Zhentong LIU el 21 de Abr. de 2014
Comentada: Nour Latrach el 6 de Jun. de 2022
Hi guys, I want to load a mat. file, sometime it works, and sometime it doesnot work,saying'Error using load Can't read file'. When i use the 'exist()', it returns 2. Sometime i need to restart my MATLAB, then the data can be loaded successfully. Please help me to figure this out. Thank you very much!
  2 comentarios
Benjamin Friedrich
Benjamin Friedrich el 31 de Ag. de 2014
I had a similar problem (opening a 1GB mat-file that DID exist in the current folder). After a simple "clear all", I could load the file.
verdyanto agung
verdyanto agung el 18 de Feb. de 2021
hello, please help me to get problem solving this my case, please....
thank you...
please share your solving in my email, verdyantoagung@gmail.com

Iniciar sesión para comentar.

Respuestas (7)

Wenqi Ouyang
Wenqi Ouyang el 5 de Jun. de 2016
It's always due to running out of memory. I close other programs and restart MATLAB then it works.
  1 comentario
Kausha kumar
Kausha kumar el 21 de Jun. de 2020
Editada: Kausha kumar el 21 de Jun. de 2020
Thanks, yes this method woks.

Iniciar sesión para comentar.


hossein
hossein el 21 de Abr. de 2014
  4 comentarios
shelley
shelley el 20 de Ag. de 2014
no, it is local.
Tra Ngo
Tra Ngo el 18 de Mzo. de 2020
Newsreader is no longer available (as of 2020).

Iniciar sesión para comentar.


Jan
Jan el 20 de Ag. de 2014
Is the file open already?
Did you exhaust the number of files open at the same time?
What does this reply:
fopen('all');
  1 comentario
shelley
shelley el 20 de Ag. de 2014
no, the file is not opened, it replies ans =
[]

Iniciar sesión para comentar.


shelley
shelley el 4 de Sept. de 2014
Hi All I just learned that this problem could likely be due to "fragmentation" issue associated with Windows XP 32-bit system. Refer to this link on " Long-Term Usage (Windows Systems Only) "

Xikang Luo
Xikang Luo el 22 de Ag. de 2017
yeah, I agree with that; It's always due to running out of memory. I close other programs and restart MATLAB then it works.
I try clear some other matrix and it worked!

Tra Ngo
Tra Ngo el 18 de Mzo. de 2020
I have R2019b, still encountering loading problem as below. I tried 'clear all', closing all other programs and restart MATLAB. My Java Heap Memory is maxed out (2,018 MB). OS is 64-bit, Windows 10. The specific file that I'm trying to load is a very big structure containing 3 fields.
>> load('Channel_1_tracking_result.mat','tracksFinal')
Error using load
Unable to read MAT-file
Not a binary MAT-file. Try load -ASCII to read as text.
  2 comentarios
erencaglar
erencaglar el 22 de Mzo. de 2020
did you solve the problem?
Tra Ngo
Tra Ngo el 22 de Mzo. de 2020
Not really. I resorted to using a 32GB Ram CPU, instead of the 8GB Ram one I was using to load the file. Somehow, when I resave the .mat file, I was able to load it using the 8GB Ram one.

Iniciar sesión para comentar.


Yunalisa Amalia
Yunalisa Amalia el 8 de Mayo de 2022
hi all, please help me how to solve this problem in matlab, when i want to open the matlab application then what happens is that the application does not want to open, then what is the solution guys?
  1 comentario
Nour Latrach
Nour Latrach el 6 de Jun. de 2022
i experienced the same thing. You need Delete the installation manually then Re-Install

Iniciar sesión para comentar.

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