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

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

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

Aide de Scilab >> HDF5 Management > h5close

h5close

Close a HDF5 object

Calling Sequence

h5close([obj_1 [, obj_2 [, ...]]])

Arguments

obj_i

a H5Object

Description

Close an object and all its descendants. That allows to free all the memory associated to this object.

All the buffers associated to the file are flushed before closing it.

With no arguments, all the opened objects are closed.

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

// Dump the file content
h5dump(a);

// Open the dataset named "x"
ds = a.root.x

// Get the attribute 'SCILAB_Class'
attr = ds.SCILAB_Class

// Read its value
attr.data

// Get the data from ds
d = ds.data

// We have finished with the dataset
h5close(ds)

// attr has been open from ds so attr is now not available
// ... so an error
attr

// We have finished so we free all the resources
h5close(a);

See Also

History

VersionDescription
5.5.0 HDF5 module introduced.
Report an issue
<< h5attr HDF5 Management h5cp >>

Copyright (c) 2022-2023 (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:
Fri Apr 11 14:14:55 CEST 2014