I have 10 vectors of temperature data, all different lengths, that I want to make boxplots of and plot them all in the same figure window. How do I do this?
No products are associated with this question.
Here's how to do that with three vectors of different lengths:
x1 = rand(10,1); x2 = 2*rand(15,1); x3 = randn(30,1); x = [x1;x2;x3]; g = [ones(size(x1)); 2*ones(size(x2)); 3*ones(size(x3))]; boxplot(x,g)