retrieve mat-file version
Ältere Kommentare anzeigen
Hello community,
I want to use the MATFILE command to access specific data in .mat-files. Is there a function which returns true if the .mat-file format is 'v7.3' and false otherwise?
I know you can check this in the command window using
type myfile.mat
However you cannot use TYPE within a function, which is what I want to do.
Thanks in advance
David
Akzeptierte Antwort
Weitere Antworten (1)
Tom
am 30 Aug. 2012
type(FileName)
should work fine, where FileName is a string containing the file name, e.g.
FileName='myfile.mat'
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!