how to calculate mean,5 percentile of first quartile q5, 50 percentile of second quartile q50 and 95 percentile of third quartile q95

35 views (last 30 days)
I have thirty years of rainfall dataset and i have to calculate it's mean,5 percentile of first quartile q5, 50 percentile of second quartile q50 and 95 percentile of third quartile q95. If I have observed and modeled data of thirty years I have to make a plot which is attached. I have no idea about percentile and quartiles.Can anyone help me? In this plot red is observed data.

Answers (1)

Star Strider
Star Strider on 18 Mar 2018
For the quantiles, use the Statistics and Machine Learning Toolbox quantile (link) function. Another option is the prctile (link) function. For the plot, use the boxplot (link) function.

Tags

Community Treasure Hunt

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

Start Hunting!