Finding numbers over a value in a matrix/array
古いコメントを表示
Hi, I have a 365x10 matrix/array? not sure what it would be called need to find the amount of numbers in a certain range/below a certain value eg 0.
Thanks for any help.
採用された回答
その他の回答 (2 件)
Andrei Bobrov
2013 年 6 月 14 日
A = rand(20,10);
A(A < .3) = -A(A < .3); % your array
out = nnz(A < 0);
Azzi Abdelmalek
2013 年 6 月 14 日
range=2
idx=find(abs(yourarray)<range)
カテゴリ
ヘルプ センター および 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!