Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Stalin Samuel
Stalin Samuel le 19 Juil 2016
Commenté : Stalin Samuel le 19 Juil 2016
I wondering if anyone point out a input which gives false output for ismatrix

Réponse acceptée

Matt J
Matt J le 19 Juil 2016
Modifié(e) : Matt J le 19 Juil 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 commentaires
Matt J
Matt J le 19 Juil 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.
Stalin Samuel
Stalin Samuel le 19 Juil 2016
Thanks dear

Connectez-vous pour commenter.

Plus de réponses (1)

the cyclist
the cyclist le 19 Juil 2016
M = zeros(2,3,5)
ismatrix(M)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by