MATLAB Answers


Boxplot - Minimum number of observations

Asked by Berk
on 21 Jun 2013

I am wondering how Matlab could plot a box-plot having both the box and the whiskers with a minimum of three observations.

Could someone please help me understand how it is possible to provide a five-number summary by using only three observations? Any published reference on this issue would be greatly appreciated.

Kind Regards,





No products are associated with this question.

1 Answer

Answer by the cyclist
on 21 Jun 2013
 Accepted answer

You can define quantiles even with just two data points:

That's not to say that it is statistically meaningful, but where does one draw the line on software deciding for you when to create what you ask it to created?

The exact description of what MATLAB does is well documented:


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!