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

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

h5readattr

HDF5属性のデータを読み込む

呼び出し手順

h5readattr(obj [, location], name)
h5readattr(filename, location, name)

Arguments

obj

H5Object

name

属性名のパスを指定する文字列

location

属性を有するグループまたはデータセットへのパスを指定する文字列

filename

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

説明

属性の内容を読み込みます.

x = int8(matrix(1:80, 10, 8));
save(TMPDIR + "/x.sod", "x"); // SODファイルはHDF5ファイルです
// 作成したファイルをオープン
a = h5open(TMPDIR + "/x.sod");
// ルートグループの属性を読み込む
scilab_version = h5readattr(a, "/", "SCILAB_scilab_version")
// 他の属性を読み込む
sod_version = h5readattr(a.root, "SCILAB_sod_version")
// データセットから読み込む
scilab_class = h5readattr(a.root.x, "SCILAB_Class")
// 処理を完了し, 全リソースを解放
h5close(a);

参照

  • h5read — HDF5データセットのデータを読み込む
  • h5writeattr — グループまたはデータセット内に属性を書き込む
  • h5attr — 属性を作成する

履歴

VersionDescription
5.5.0 HDF5モジュールが導入されました.
Report an issue
<< h5read HDF5 Management h5rm >>

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:
Mon Feb 12 23:12:41 CET 2018