find if a column vector contains at least element 1
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have to check if column vector has at least element 1. Does Matlab have such similar function or I have to build it myself?
3 commentaires
Daniel Shub
le 20 Sep 2012
Modifié(e) : Daniel Shub
le 20 Sep 2012
So do you mean any? It would help if you gave a couple of example vectors and what you expect.
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 20 Sep 2012
Modifié(e) : Azzi Abdelmalek
le 20 Sep 2012
length(a)
Or
numel(a)
2 commentaires
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!