Clear Filters
Clear Filters

Box plot into figure with another graphs

4 views (last 30 days)
I have a matrix with predictions (100X24). I sorted this matrix and made a plot of the confidence intervals (maximun and minimum values) with actual data (Below is the code). What I'm trying to do is add a box diagram to the plot. How is this done?
Q_lower = Predictions_sorted(30*0.15/2,:);
Q_upper = Predictions_sorted(30*(1-0.15/2),:);
Your help is invaluable !!!
  1 Comment
Adam Danz
Adam Danz on 23 Jun 2022
The maximum and minimum of the data does not define the confidence interval, they define the range.
Boxplot typically depict the 25th and 75th percentiles of the data and the median.

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 23 Jun 2022
MATLAB's boxplot and boxchart are designed to create box plots from the raw data.
% or

More Answers (0)

Community Treasure Hunt

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

Start Hunting!