How many positive entries in array
古いコメントを表示
I have a 1450x1 array. I want to count how many positive entries in array?
採用された回答
その他の回答 (1 件)
hidayet beyhan
2020 年 3 月 28 日
編集済み: hidayet beyhan
2020 年 3 月 28 日
1 投票
Or you can use for an array:
x = randn(1450,1);
sum(x>0)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!