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ヘルプ >> Matlab binary files I/O > matfile_listvar

matfile_listvar

Matlab バイナリ MATファイルの中の変数の一覧を得る.

呼び出し手順

[names[, classes[, types]]] = matfile_listvar(fd)

引数

fd

実数: (matfile_openにより返された)ファイル記述子.

names

文字列ベクトル: 変数名.

classes

実数ベクトル: 変数のクラス.

types

実数ベクトル: 変数のデータ型.

説明

matfile_openにより開かれた MatlabバイナルMATファイルの中の変数の一覧を取得します.

ファイルに変数がない場合, 空の行列が返されます.

A = rand(10,10);
B = sprand(100,100,0.1);
C = "foo";
D = "bar";
savematfile('test_matfile.mat','A','B','C','D','-v6');
clear();
fd = matfile_open("test_matfile.mat");
[name, classes, types]=matfile_listvar(fd);
matfile_close(fd);
for i=1:size(name,"*") do
disp("The variable " + name(i) + " has type " + string(types(i)) + " and class " + string(classes(i)))
end

参照

  • matfile_open — Matlab バイナリ MAT-ファイルを開く.
  • matfile_close — Matlab バイナリ MATファイルを閉じる.
  • matfile_varwrite — Matlab バイナリ MATファイルに変数を書き込む.
  • matfile_varreadnext — Matlab バイナリ MATファイルの次の変数を読み込む.

参考文献

この関数はMATIOライブラリ ( http://sourceforge.net/projects/matio/ )を使用しています.

Report an issue
<< matfile_close Matlab binary files I/O matfile_open >>

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:43 CET 2018