Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Русский

Change language to:
English - Français - 日本語 - 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

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

h5label

Label a dataset

Calling Sequence

h5label(obj, location, dims, names)
h5label(filename, location, dims, names)

Arguments

obj

a H5Object

location

a string giving the location

dims

a row of doubles

names

a row of strings with the same size as dims

filename

a string giving the filename

Description

Label a dataset according to dims and names. The dims(i)-nth dimension is labelled with names(i).

Examples

// We create an HDF5 file
a = h5open(TMPDIR + "/test.h5", "w")

// The data
x = uint8(1:24);

// We make a dataset with x as an hypermatrix 1x2x3x4
h5dataset(a, "My Dataset", [1 2 3 4 ; 1 1 1 1 ; 1 1 1 1 ; 1 1 1 1; 1 2 3 4], x, [1 2 3 4 ; 1 2 3 4 ; 1 1 1 1 ; 1 1 1 1 ; 1 1 1 1 ; 1 2 3 4]);
  
// We label it
h5label(a, "My Dataset", [1 3], ["Hello" "World"]);

// We check
h5dump(a)

// We close all
h5close(a)

See Also

History

ВерсияОписание
5.5.0 HDF5 module introduced.
Report an issue
<< h5isVlen HDF5 Management h5ln >>

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:27:19 CEST 2015