Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 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 Management > h5get

h5get

Get a named object

Calling Sequence

nobj = h5get(obj, location [, isAttr])

Arguments

obj

a H5Object

location

a string giving the location

isAttr

a boolean to indicate that an attribute must be got

nobj

a H5Object

Description

Get the object with the given location under obj. If isAttr is %T, an H5 object is returned (if it exists), by default isAttr is %F.

Examples

x = ["Hello" "World"; "Salut" "Monde"];
save(TMPDIR + "/x.sod", "x"); // SOD files are HDF5 ones 	

// Open the created file
a = h5open(TMPDIR + "/x.sod");

// Get the root object, this equivalent to a.root or a("/")
r = h5get(a, "/")

// Get the dataset "x"
x = h5get(a, "/x") // or h5get(a.root, "x")
x.data

// Get an unexisting dataset
y = h5get(a.root, "blahblah")

// Get an attribute
attr = h5get(a.root, "SCILAB_scilab_version", %t)
attr.data

// We close all
h5close(a)

See Also

History

VersãoDescrição
5.5.0 HDF5 module introduced.
Report an issue
<< h5flush HDF5 Management h5group >>

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 02 13:57:41 CEST 2014