Matlab バイナリ MATファイルを閉じる.
status = matfile_close(fd)
実数: ファイル記述子 (matfile_openにより返される).
論理値: 閉じるのに成功した場合に %T ,そうでない場合に %F .
matfile_openにより開かれた Matlab バイナリ MATファイルを閉じます.
fd = matfile_open("test_matfile.mat","w"); matfile_varwrite(fd, "foo", "bar", %t); if matfile_close(fd) == %t then disp("close worked!"); else disp("close failed!"); end fd = matfile_open("test_matfile.mat"); matfile_listvar(fd) matfile_close(fd); | ![]() | ![]() |
この関数はMATIOライブラリ (
http://sourceforge.net/projects/matio/
)を使用しています.