find if a column vector contains at least element 1
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Daniel Shub
am 20 Sep. 2012
Bearbeitet: Daniel Shub
am 20 Sep. 2012
So do you mean any? It would help if you gave a couple of example vectors and what you expect.
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 20 Sep. 2012
Bearbeitet: Azzi Abdelmalek
am 20 Sep. 2012
length(a)
Or
numel(a)
2 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!