MATLAB: I need to make a box plot, I am stuck making more than one

boxplots

I have a time series of numbers 15 min averages of 50 hours. So this is 200 points and need a box plot of every hour, so 4 points for one box plot. Can anyone help with this?

Best Answer

boxplot(reshape(date(4,[]))
or, somewhat less cryptic perhaps if you are using an actual timeseries object with calendar times would be to group by day and use the optional second grouping argument to boxplot. Or, of course, since the grouping is fixed and known, you could also create the grouping vector manually.