Is there hidden information in MAT files?

조회 수: 2 (최근 30일)
Troy Skousen
Troy Skousen 2019년 1월 4일
댓글: Troy Skousen 2019년 1월 4일
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
Walter Roberson
Walter Roberson 2019년 1월 4일
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
Troy Skousen 2019년 1월 4일
Deliberately. Making a fresh copy of the data I want is a good idea.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 1월 4일
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.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by