find if a column vector contains at least element 1
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Daniel Shub
il 20 Set 2012
Modificato: Daniel Shub
il 20 Set 2012
So do you mean any? It would help if you gave a couple of example vectors and what you expect.
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 20 Set 2012
Modificato: Azzi Abdelmalek
il 20 Set 2012
length(a)
Or
numel(a)
2 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!