How many positive entries in array
Show older comments
I have a 1450x1 array. I want to count how many positive entries in array?
Accepted Answer
More Answers (1)
hidayet beyhan
on 28 Mar 2020
Edited: hidayet beyhan
on 28 Mar 2020
1 vote
Or you can use for an array:
x = randn(1450,1);
sum(x>0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!