Test the existence of named object
b = h5exists(obj, locations) b = h5exists(obj, location, attrNames) b = h5exists(filename, locations) b = h5exists(filename, location, attrNames)
a H5Object
a matrix of string containing the path to check
a string giving the location where to check the attributes names
a matrix of string containing the attributes names to check
a string giving the filename
a matrix of booleans
Check the existence of a named object or an attribute.
x = 123; y = 321; save(TMPDIR + "/xy.sod", "x", "y"); // We open the file a = h5open(TMPDIR + "/xy.sod", "r"); // Check existence of datasets "x", "y" and "z" // "z" does not exist... h5exists(a, ["x" "y" "z"]) // Check presence of Silab attributes h5exists(a, "/", ["SCILAB_sod_version", "SCILAB_scilab_version"]) // Free all the resources h5close(a); | ![]() | ![]() |
Version | Description |
5.5.0 | HDF5 module introduced. |