Any one give me an example for false output in ismatrix.
1 次查看(过去 30 天)
显示 更早的评论
I wondering if anyone point out a input which gives false output for ismatrix
0 个评论
采纳的回答
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
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.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!