MATLAB Answers

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

98 views (last 30 days)
Tanmoyee Bhattacharya on 18 Mar 2018
Answered: Star Strider on 18 Mar 2018
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.
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Answers (1)

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.
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Community Treasure Hunt

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

Start Hunting!