How many positive entries in array
Ältere Kommentare anzeigen
I have a 1450x1 array. I want to count how many positive entries in array?
Akzeptierte Antwort
Weitere Antworten (1)
hidayet beyhan
am 28 Mär. 2020
Bearbeitet: hidayet beyhan
am 28 Mär. 2020
1 Stimme
Or you can use for an array:
x = randn(1450,1);
sum(x>0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!