Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
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.
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:28 CEST 2016