isnh5file
Checks if filename a valid .nh5 file
📝Syntax
tf = isnh5file(filename)
[tf, version, header] = isnh5file(filename)
📥Input Arguments
Parameter Description
filename a string: .nh5 filename.
📤Output Arguments
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).
📄Description

isnh5file checks if filename a valid .nh5 file.

💡Examples
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'])
🔗See Also
ismatfile
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub