Is there hidden information in MAT files?
Show older comments
I need to do a complete check of the content of a MAT file. My plan was to load it into the MATLAB workspace and interrogate each variable in turn. Can MAT files contain inform that would not be accessable directly in this way? If so, how would I access it?
4 Comments
Steven Lord
on 4 Jan 2019
What does a "complete check" entail? What are you looking for? What's your goal?
Troy Skousen
on 4 Jan 2019
Walter Roberson
on 4 Jan 2019
hidden accidentally or deliberately ? If deliberately then information can always be encoded in subtle ways such as the details of variables marked as deleted.
You can reduce risks by loading the variables and saving them to a new file .
Troy Skousen
on 4 Jan 2019
Answers (1)
Walter Roberson
on 4 Jan 2019
0 votes
Yes, there is additional information about the size and compression status of each variable , and about the date of creation of the file and about the kind of system (os family ) and the endianness.
specifications are published for MATLAB 5.0 file format . The 7.0 file format is pretty similar . You can find tools in fex for debugging these files.
However 7.3 are aa different format related to hdf5 with some undocumented changes.
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!