Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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 > h5exists

h5exists

指定した名前のオブジェクトが存在するかどうかを確認

呼び出し手順

b = h5exists(obj, locations)  

b = h5exists(obj, location, attrNames)  

b = h5exists(filename, locations)  

b = h5exists(filename, location, attrNames)

引数

obj

H5Object

locations

確認するパスを有する文字列の行列

location

属性名を確認する位置を指定する文字列

attrNames

確認する属性名を有する文字列の行列

filename

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

b

論理値の行列

説明

指定した名前のオブジェクトまたは属性の存在を確認します.

x = 123;
y = 321;
save(TMPDIR + "/xy.sod", "x", "y");

// ファイルをオープン
a = h5open(TMPDIR + "/xy.sod", "r");

// データセット "x", "y" および "z"の存在を確認
// "z" は存在しない...
h5exists(a, ["x" "y" "z"])

// Scilab 属性の存在を確認
h5exists(a, "/", ["SCILAB_sod_version", "SCILAB_scilab_version"])

// リソースを全て解放
h5close(a);

参照

  • h5open — HDF5ファイルをオープン
  • h5get — 指定した名前のオブジェクトを取得

履歴

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

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:
Fri Apr 11 14:18:58 CEST 2014