Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -

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

Справка Scilab >> HDF5 Management > h5exists

h5exists

Test the existence of named object

Calling Sequence

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

ВерсияОписание
5.5.0 HDF5 module introduced.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:08 CEST 2014