Find the first 10000 data above threshold
Ältere Kommentare anzeigen
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!
Antworten (1)
siz = [524288 27];
threshold = 1e-7;
A = randn(siz)
idx = find(A > threshold,10000)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!