How to have more than one box plot in one plot?

조회 수: 9 (최근 30일)
BN
BN 2020년 4월 5일
댓글: Ameer Hamza 2020년 4월 5일
Hey all,
I'm unable to plot more than one box plot in one figure. My data sets are seven n x 1 double (every double array of this seven and I have 7 of them which I want to have boxplots for every 7 data set in one figure, something like this:
Sample data are provided, I have 7 file like this
Thank you all.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 5일
  댓글 수: 4
BN
BN 2020년 4월 5일
Thank you it's awesome.
Ameer Hamza
Ameer Hamza 2020년 4월 5일
Glad to be of help.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Florian Floh
Florian Floh 2020년 4월 5일
Concatenating your data into one matrix should do the trick.
Let's say you load two arrays:
load('y.mat');
load('x.mat');
% Concatenate them to a matrix named z
z = [x,y];
% Create a boxplot
boxplot(z);
  댓글 수: 1
BN
BN 2020년 4월 5일
Thanks but I have different x and y row numbers

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by