Need help with generating a box and whisker plot

6 views (last 30 days)
Abdul Wahab
Abdul Wahab on 13 Apr 2018
Answered: dpb on 13 Apr 2018
I have 5 strings of data for 100 models, where each string represents the 5th, 25th, 50th, 75th, and the 95th percentiles. I am interested in creating a box and whisker plot for all these strings. I am new to the world of matlab. Any help would be greatly appreciated.
Many thanks!

Answers (1)

dpb
dpb on 13 Apr 2018
Unfortunately, the builtin boxplot function only does the whole thing from the raw data; it doesn't have the feature to build a boxplot from the statistics only. Oleg some years ago showed how to mung on a boxplot with made up data to produce one that has the desired statistics artifically introduced for the plot; it is doable but not as trivial as one would like. As he says, one would encapsulate the necessary commands in a function for use in practice. <Answer_40303>

Community Treasure Hunt

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

Start Hunting!