Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Français


h5exists

Test the existence of named object

Syntax

b = h5exists(obj, locations)
b = h5exists(obj, location, attrNames)
b = h5exists(filename, locations)
b = h5exists(filename, location, attrNames)

Arguments

obj

a H5Object

locations

a matrix of string containing the path to check

location

a string giving the location where to check the attributes names

attrNames

a matrix of string containing the attributes names to check

filename

a string giving the filename

b

a matrix of booleans

Description

Check the existence of a named object or an attribute.

Examples

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);

See also

  • h5open — Open an HDF5 file
  • h5get — Get a named object

History

VersionDescription
5.5.0 HDF5 module introduced.
Report an issue
<< h5dump Fichiers HDF5 h5flush >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:15:59 CEST 2024