Calculate percentile when logical is true
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
goyanks1989
le 4 Avr 2016
Commenté : Star Strider
le 4 Avr 2016
I am looking at a large data set from NASA flight. I am only interested in points when the airplane is higher than 8 km so I set up a logical:
alt8= alt > 8
which gives me back points with 0 (false) or 1 (true) corresponding with points below or above 8 km
Using only these true points when the height is >8, I would like to find the 99th percentile of another data point, vertical velocity.
vv99=prctile(vv,99)
In other words, I need to find the 99th percentile of vertical velocity when alt>8 rather than the 99th percentile for the entire flight.
What kind of loop or statement should I use to extract just the points when alt>8?
Thank you!
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Yield Curves dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!