MATLAB: How to use box plots for irregular x-axis intervals

box plots

I would like to use box plots for data that are collected at irregular time intervals. How can I plot multiple boxes at specific x-locations instead of just having them regularly spaced?
Thanks.

Best Answer

  • While I've not used it, the optional GROUPING input variable should suffice in conjunction with the 'positions' named parameter. See the doc for details...there are a couple of examples of doing so it appears.