How many positive entries in array
Mostrar comentarios más antiguos
I have a 1450x1 array. I want to count how many positive entries in array?
Respuesta aceptada
Más respuestas (1)
hidayet beyhan
el 28 de Mzo. de 2020
Editada: hidayet beyhan
el 28 de Mzo. de 2020
1 voto
Or you can use for an array:
x = randn(1450,1);
sum(x>0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!