Why does my 'MAT-File Header Summary' include the 'MATLAB 5.0 MAT-file' header message when I try to save my data as a MAT file in '-v7' version in MATLAB 7.9 (R2009b)?
조회 수: 9 (최근 30일)
이전 댓글 표시
I am trying to save my data as a MAT file in '-v7' version. However, when I inspect the generated MAT file, under the 'MAT-File Header Summary' I notice that it includes the 'MATLAB 5.0 MAT-file' header message.
I also noticed that, when I tried to save the MAT file in '-v7.3' version, the header message included the version of MAT file correctly i.e. 'MATLAB 7.3 MAT-file'.
채택된 답변
MathWorks Support Team
2010년 1월 28일
The format in which the MAT files are saved is officially known as "Level 5" format. However, '-v5','-v6' and '-v7' refer to different capabilities on the same format.
If we try saving with the '-v6' flag, we get a MAT file with a header reporting "MATLAB 5.0 MAT-file" as shown in the example code below.
x = 1;
save v4 -v4
save v6 -v6
save v7 -v7
save v73 -v7.3
type v4.mat
type v6.mat
type v7.mat
type v73.mat
This header message has been updated only when the structure of the file was changed. Compression and Unicode were introduced in '-v7',but using the same basic file format.
The following documentation link on MAT-File formats will also be helpful.
<http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf>
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!