Median that ignores Nans
Afficher commentaires plus anciens
Hello,
just wondering if anyone can help me with the Median function?
I have long-term rainfall data in a matrix of 306 stations by 149 years (as I have already chosen a month) with rainfall in millimetres or NaNs for no values. I previously have been able to get the mean value for all years for each station by using
z = nanmean(values) ;
Now I would like to get the median for a chosen column but my results keep coming up with the median being NaNs for most stations.
Is anyone able to help with this?
Thankyou
1 commentaire
Ger
le 19 Juil 2011
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!