Find the first 10000 data above threshold
Show older comments
I have an array: M (524288 by 27) I want to find the first 10000 data that is greater than a threshold. For example, the data consists of many x10^-6, 10^-7 and 10^-8. I want to set the threshold at 10^-7 so that it starts counter until 10000. Could you help me? Thanks!
Answers (1)
siz = [524288 27];
threshold = 1e-7;
A = randn(siz)
idx = find(A > threshold,10000)
Categories
Find more on Surface and Mesh Plots 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!