tf = isnh5file(filename)
[tf, version, header] = isnh5file(filename)
| Parameter | Description |
|---|---|
| filename | a string: .nh5 filename. |
| Parameter | Description |
|---|---|
| tf | a logical: true if it is a valid .nh5 file. |
| version | a string array: "-v1" or "" if it is undefined. |
| header | a string array: header of nh5 file (date created). |
isnh5file checks if filename a valid .nh5 file.
A = ones(3, 4);
savemat([tempdir(), 'example_isnh5.mat'], 'A')
R = isnh5file([tempdir(), 'example_isnh5.mat'])
h5save([tempdir(), 'example_isnh5.nh5'], 'A')
[R, VER, HE] = isnh5file([tempdir(), 'example_isnh5.nh5'])
| Version | Description |
|---|---|
| 1.0.0 | initial version |