MATLAB: Problem with displaying box plot chart

boxplotgraphicsstatisticsStatistics and Machine Learning Toolbox

I'm having a problem with displaying box plot chart.
I'm running the box plot function on a vector within a matrix.
The resault graph has only "Whiskers" and no box plot – the blue box.

Best Answer

One reason that this could happen is that the distribution is so narrow that the 25th and 75th percentiles are identical to the median. The box then "collapses" into one value.
You might try using the "prctile" command on the data you are plotting, to test what the 25th, 50th, and 75th percentiles are. The 25th and 75th define the outer edges of the box.