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

h5rm

Remove elements from an HDF5 file

Calling Sequence

h5rm(obj [, names])
h5rm(filename, names)

Arguments

obj

a H5Object

names

a matrix of strings giving the locations to remove

filename

a string giving an the path of a HDF5 file

Description

Remove one or more objects from the file.

Examples

a = h5open(TMPDIR + "/test.h5", "a");

// We can create several groups under root
names = "Group_" + string(1:10);
h5group(a, names)

// we display them
h5ls(a)

// ... or
a.root.groups

// we can remove a part of them
names = "Group_" + string(1:2:10);
h5rm(a, names);

// we check that all is ok
a.root.groups

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

// We can remove attributes too
x = %pi;
save(TMPDIR + "/x.sod", "x"); // SOD files are HDF5 ones 	

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

// we look for attributes
h5ls(a)

// ... or
a.root.attributes

// We remove 'SCILAB_sod_version'
h5rm(a, "SCILAB_sod_version"), h5ls(a)

// Free the resources
h5close(a);

See Also

History

VersionDescription
5.5.0 HDF5 module introduced.
Report an issue
<< h5readattr HDF5 Management h5umount >>

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:
Wed Apr 01 10:21:42 CEST 2015