MATLAB: Isn’t there any simple command to create a grouped boxplot in MATLAB yet

boxplot

I am trying to plot a grouped boxplot on MATLAB but surprisingly Excel can do better!Can anyone suggest the best way to create a grouped boxplot as easy as making one for barchart?

Best Answer

Sure, there is matlab function specific for this: http://www.mathworks.com/help/stats/boxplot.html
load carsmall
boxplot(MPG,Origin)
title('Miles per Gallon by Vehicle Origin')
xlabel('Country of Origin')
ylabel('Miles per Gallon (MPG)')
Related Question