<< Shape tests Shape tests ismatrix >>

Scilab Help >> Elementary Functions > matrixmanipulation > Shape tests > iscolumn

iscolumn

変数が列ベクトルであるかを確認

呼び出し手順

t=iscolumn(x)

引数

x

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

t

論理値

説明

iscolumn(x)xが列ベクトルの場合にtrueを返します. スカラーは列ベクトルとみなされます. iscolumn([])はfalseを返すことに注意してください.

iscolumn(ones(10,1))
iscolumn(1)
iscolumn(["s"; "t"; "u"])
iscolumn(rand(3,1,1))
iscolumn(rand(1,1,3))
s = struct();
iscolumn(s) // 空の構造体
clear s
s.a = %z;
s.b = 2;
iscolumn(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;
iscolumn(s) // 構造体の2次元配列
clear s
s(1,1,2).a = 3;
s(1,1,3).b = "test";
iscolumn(s) // 構造体の3次元配列 (うち2つの次元は1要素)

参照

履歴

VersionDescription
5.5.0 関数iscolumnが導入されました.

Report an issue
<< Shape tests Shape tests ismatrix >>