Skip to content. | Skip to navigation

Sections
Personal tools
You are here: Home Forum Using data sets pfc-4: matlab says file might be corrupt?

pfc-4: matlab says file might be corrupt?

Up to Using data sets

pfc-4: matlab says file might be corrupt?

Posted by Jonathan D Victor at November 19. 2021

Maybe I'm doing something silly, but after uncompressing the .mat files from the .gz archive, matlab cannot load the files and says that they might be corrupt.  Matlab is ver 2019b.  Any suggestions?  Thanks...

Re: pfc-4: matlab says file might be corrupt?

Posted by Jeff Teeters at November 19. 2021

When I try loading a file it works for me:

>> cd data

>> cd rr014

>> ls

prefront

>> cd prefront

>> r14001 = open("R14001_001.mat")

r14001 = 

  struct with fields:

    result: {141×18 cell}

 

If you try the above procedure and still get an error, which file is failing to load?

Re: pfc-4: matlab says file might be corrupt?

Posted by Jonathan D Victor at November 22. 2021

Thanks very much. Problem solved.

It might have been a windows/linux issue.  The original issue was on a Windows system (but I had used "load" rather than "open").

Uncompressing on a colleague's Linux system via tar zxvf data.tar.gz   resulted in .mat files that could be "loaded" on my windows system  So problem solved.

Powered by Ploneboard
Document Actions