Welcome! Log In Create A New Profile

Advanced

Recovering .mat file after crash

Posted by kpan 
Recovering .mat file after crash
February 03, 2020 10:33PM
Hello,

I'm dealing with an issue where the computer crashed in the middle of a task, and although the .mat file for the behavioral data before the crash was saved, I cannot open it in MATLAB or read it with scipy.io.loadmat. I get the following message when I try to open the file in MATLAB:

Error using load
Number of columns on line 2 of ASCII file
must be the same as previous lines.

Error in uiimport/runImportdata (line 467)
datastruct = load('-ascii', fileAbsolutePath);

Error in uiimport/gatherFilePreviewData (line 435)
[datastruct, textDelimiter, headerLines]=
runImportdata(fileAbsolutePath, type);

Error in uiimport (line 245)
gatherFilePreviewData(fileAbsolutePath);

Do you know of any ways to repair / read the file?

Thank you!
Re: Recovering .mat file after crash
February 04, 2020 10:39AM
I don't think there is such a magic.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.