[tf, ver, header] = ismatfile(filename)
| Paramètre | Description |
|---|---|
| filename | une chaîne : nom de fichier .mat. |
| Paramètre | Description |
|---|---|
| tf | un logique : true si c'est un fichier .mat valide. |
| ver | un tableau de chaînes : version du fichier .mat ("-v7.3", "-v7" ou "-v6"). |
| header | un tableau de chaînes : en-tête du fichier .mat (date). |
ismatfile vérifie si le nom de fichier correspond à un fichier .mat valide.
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 | version initiale |