Any one give me an example for false output in ismatrix.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Stalin Samuel
am 19 Jul. 2016
Kommentiert: Stalin Samuel
am 19 Jul. 2016
I wondering if anyone point out a input which gives false output for ismatrix
0 Kommentare
Akzeptierte Antwort
Matt J
am 19 Jul. 2016
Bearbeitet: Matt J
am 19 Jul. 2016
>> 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 Kommentare
Matt J
am 19 Jul. 2016
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.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!