フィルターのクリア

Any one give me an example for false output in ismatrix.

2 ビュー (過去 30 日間)
Stalin Samuel
Stalin Samuel 2016 年 7 月 19 日
コメント済み: Stalin Samuel 2016 年 7 月 19 日
I wondering if anyone point out a input which gives false output for ismatrix

採用された回答

Matt J
Matt J 2016 年 7 月 19 日
編集済み: Matt J 2016 年 7 月 19 日
>> ismatrix(rand(3,3,3))
ans =
0
As more exotic example,
>> ismatrix(myclass)
ans =
0
where myclass is defined as follow,
classdef myclass
methods
function sz=size(obj)
sz=1;
end
end
end
  4 件のコメント
Matt J
Matt J 2016 年 7 月 19 日
From the help doc for ismatrix
ismatrix(M) returns logical 1 (true) if SIZE(M) returns [m n]
with nonnegative integer values m and n, and logical 0 (false) otherwise.
Stalin Samuel
Stalin Samuel 2016 年 7 月 19 日
Thanks dear

サインインしてコメントする。

その他の回答 (1 件)

the cyclist
the cyclist 2016 年 7 月 19 日
M = zeros(2,3,5)
ismatrix(M)
  1 件のコメント
Stalin Samuel
Stalin Samuel 2016 年 7 月 19 日
Thanks for your instant reply

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by