I have four different vectors in my data. I want to create four different boxplots for each one of them and display them all in the same figure,side by side so I can compare them. Is that possible ? Subplot is not actually what would fit in this case and I have also tried 'hold on' but that doesn't work either (at least the way I do it). I am quite new in Matlab so could you please help me figure this out ? Thanks
first_plot=100*scores./counts; second_plot=100*Fscores./Fcounts; third_plot=100*Gscores./Gcounts; fourth_plot=100*Pscores./Pcounts;
No products are associated with this question.
Put the data in a matrix with each vector a column vector and call boxplot() on the matrix.
X = randn(100,4); boxplot(X)
Does this not work for you? If not, can you please detail why?
Play games and win prizes!Learn more