Find the first 10000 data above threshold
Mostrar comentarios más antiguos
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!
Respuestas (1)
siz = [524288 27];
threshold = 1e-7;
A = randn(siz)
idx = find(A > threshold,10000)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!