Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - 日本語

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

Scilabヘルプ >> HDF5 Management > h5label

h5label

データセットに名前を付ける

呼び出し手順

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

引数

obj

H5Object

location

位置を指定する文字列

dims

doubleの行ベクトル

names

dimsと同じ大きさの文字列の行ベクトル

filename

ファイル名を指定する文字列

説明

dimsおよびnamesによりデータセットに名前を付けます. dims(i)のn番目の次元はnames(i)で 名前を指定します.

// HDF5ファイルを作成
a = h5open(TMPDIR + "/test.h5", "w")
// データ
x = uint8(1:24);
// ハイパー行列1x2x3x4としてxを含むデータセットを作成
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]);
// データセットに名前を付ける
h5label(a, "My Dataset", [1 3], ["Hello" "World"]);
// 確認
h5dump(a)
// 全て閉じる
h5close(a)

See also

  • h5open — HDF5ファイルをオープン

History

バージョン記述
5.5.0 HDF5 module introduced.
Report an issue
<< h5isVlen HDF5 Management h5ln >>

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:
Tue Feb 14 15:10:31 CET 2017