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 > h5rm

h5rm

HDF5ファイルから要素を削除

呼び出し手順

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

引数

obj

H5Object

names

削除する位置を指定する文字列

filename

HDF5ファイルのパスを指定する文字列

説明

ファイルから一つ以上のオブジェクトを削除します.

a = h5open(TMPDIR + "/test.h5", "a");
// ルート以下に複数のグループを作成可能
names = "Group_" + string(1:10);
h5group(a, names)
// これらを表示
h5ls(a)
// ... または
a.root.groups
// これらから一部を削除可能
names = "Group_" + string(1:2:10);
h5rm(a, names);
// 全てokか確認we check that all is ok
a.root.groups
// 処理を完了し, 全リソースを解放
h5close(a);
// 属性も削除可能
x = %pi;
save(TMPDIR + "/x.sod", "x"); // SOD ファイルは HDF5 ファイル
// 作成したファイルをオープン
a = h5open(TMPDIR + "/x.sod");
// 属性を探す
h5ls(a)
// ... または
a.root.attributes
// 'SCILAB_sod_version'を削除
h5rm(a, "SCILAB_sod_version"), h5ls(a)
// リソースを解放
h5close(a);

参照

  • h5group — グループを作成
  • h5dataset — データセットを作成し, データを書き込む
  • h5attr — 属性を作成する

履歴

バージョン記述
5.5.0 HDF5モジュールが導入されました.
Report an issue
<< h5readattr HDF5 Management h5umount >>

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