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

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> HDF5 Management > h5exists

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 HDF5 Management 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:
Mon Feb 12 19:15:31 CET 2018