How to find cell positions of values within specific interquartile range from a column vector?

1 Ansicht (letzte 30 Tage)
I have one year daily rainfall values in A. I extracted values of interest (B) from A within quantiles .85 to .99 using following:
V = quantile(A,[0.85 .99])
B = A(A>V(1) & A<V(2))
How to find corresponding cell positions of these values in A?

Akzeptierte Antwort

KSSV
KSSV am 31 Jan. 2020
idx = find(A>V(1) & A<V(2)) ;

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by