Reputation: 29
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;
Upvotes: 0
Views: 4979
Reputation: 6434
You can do something like this:
first put your data in one matrix:
F(:,1) = a;
F(:,2) = b;
...
boxplot(F(:,1:2));xlabel('SA - MP')
it becomes something like the following picture:
Upvotes: 1