Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> HDF5 files > 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 files 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:
Tue Feb 25 08:52:31 CET 2020