How can I determine the version of a MAT file from MATLAB? -
i wondering if there way determine whether particular mat file v4, v6, v7 or v7.3?
i looking solution can determine version using matlab code, preferably without having load data memory.
there comment @ beginning of mat-files version 6 or following. code reads it:
function txt=getmatcomment(x) fid=fopen(x); txt=char(fread(fid,[1,140],'*char')); txt=[txt,0]; txt=txt(1:find(txt==0,1,'first')-1); end
it seems comment 116 chars long, did not find reference. code reads 140 chars , cuts of @ end.
the part don't understand: version 6 or 7 says matlab 5.0 mat-file
Comments
Post a Comment