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ヘルプ >> Elementary Functions > ismatrix

ismatrix

変数が行列かどうかを確認

呼び出し手順

tf = ismatrix(x)

引数

x

スカラー,ベクトル, 行列, ハイパー行列, リスト, 構造体の配列またはセル

tf

論理値

説明

ismatrix(x) は, xが行列の場合にtrueを返します. スカラーとベクトルは行列とみなされます.

  • An hypermatrix H that would be a matrix after reordering its dimensions is considered as a matrix, and ismatrix(H) returns %T.
  • To test that x is not an hypermatrix or an hyperarray -- whatever are the sizes of its dimensions --, use simply ndims(x)<3.
  • ismatrix([])はfalseを返します.

ismatrix(ones(10,5))
ismatrix(1)
ismatrix(["s" "t" "u"; "t" "s" "u"])
ismatrix(rand(2,1,3)) // 要素が1
ismatrix(rand(2,2,3)) // ハイパー行列
s = struct();
ismatrix(s) // 空の構造体
clear s
s(1,2).a = 3;
s(1,3).b = %z;
ismatrix(s) // 構造体の行配列
clear s
s(2,1).a = "w";
s(3,1).b = %t;
iscolumn(s) // 構造体の列配列
clear s
s(1,2).a = -2;
s(3,1).b = %pi;
ismatrix(s) // 構造体の2次元非正方行列
clear s
s(2,1,2).a = 3;
s(1,1,2).b = "test";
ismatrix(s) // 構造体の3次元配列 (1要素の次元が1つある)
clear s
s(1,1,2).a = 3;
s(1,1,3).b = "test";
ismatrix(s) // 構造体の3次元配列 (1要素の次元が2つある)
clear s
s(2,2,2).a = %f;
s(1,2,1).b = list(%e, %s);
ismatrix(s) // 構造体の3次元 (立法)配列

参照

  • isscalar — 変数がスカラーかどうかを確認.
  • isrow — 変数が行ベクトルかどうか確認する
  • iscolumn — 変数が列ベクトルであるかを確認
  • issquare — 変数が正方行列かどうかを確認
  • isempty — 変数が空の行列または空のリストかどうかを調べる
  • ndims — 配列の次元の数

履歴

バージョン記述
5.5.0 関数 ismatrix が導入されました.
Report an issue
<< isequal Elementary Functions isrow >>

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:28 CET 2017