MATLAB: Isn’t ‘whisker’ recognized as a valid parameter when using the BOXPLOT function in the Statistics Toolbox 5.0 (R14)

boxplotparameterparametersStatistics and Machine Learning Toolboxwhiswhisker

The documentation for the BOXPLOT function states that 'whisker' is a valid parameter name. However, when I use this parameter within the BOXPLOT function:
boxplot(rand(100,2),'notch','on','whisker',1)
I receive the following error:
??? Error using ==> boxplot
Invalid parameter name: whisker.

Best Answer

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in the Statistics Toolbox 5.0 (R14) in the way that the BOXPLOT function handles the 'whisker' parameter. To work around this issue, change the line of $MATLAB/toolbox/stats/boxplot.m that reads:
okargs = {'notch' 'symbol' 'orientation' 'whis' 'labels'};
to:
okargs = {'notch' 'symbol' 'orientation' 'whisker' 'labels'};