MATIO | loadmat >> |
[tf, ver, header] = ismatfile(filename) |
a string: .mat filename.
a logical: true if it is a valid .mat file.
a string array: version of .mat file ("-v7.3", "-v7" or "-v6").
a string array: header of .mat file (date).
ismatfile checks if filename a valid .mat file.
A = ones(3, 4);
savemat([tempdir(), 'example_loadmat-v7.3.mat'], 'A', '-v7.3')
savemat([tempdir(), 'example_loadmat-v7.mat'], 'A', '-v7')
savemat([tempdir(), 'example_loadmat-v6.mat'], 'A', '-v6')
[tf, ver] = ismatfile([tempdir(), 'example_loadmat-v7.3.mat'])
[tf, ver] = ismatfile([tempdir(), 'example_loadmat-v7.mat'])
[tf, ver] = ismatfile([tempdir(), 'example_loadmat-v6.mat'])
[tf, ver, header] = ismatfile([tempdir(), 'example_not_existing.mat'])
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET