draw a boxplot from percentiles

조회 수: 24 (최근 30일)
Mohammad Aljarrah
Mohammad Aljarrah 2020년 9월 21일
댓글: Ameer Hamza 2020년 9월 21일
i have a data that are just percentiles and i want to draw a boxplot from it. is there a way to do so? also, i want to plot multiple boxplots on the same figure. can anyone help me with this please? P.S i want the whiskers to show the minimum and maximum values.
data1
min 702.454
25th 1761.20017
50th 1863.878989
75th 2058.24099
max 5206.202
data2
min 662.9978
25th 854.7328411
50th 921.9074214
75th 1079.179764
max 4580.516

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 21일
Something like this
data = [702.454 1761.20017 1863.878989 2058.24099 5206.202;
662.9978 854.7328411 921.9074214 1079.179764 4580.516];
data = data(:, [1 2 2 3 4 4 5]);
boxplot(data.', 'Whisker', inf);
  댓글 수: 2
Mohammad Aljarrah
Mohammad Aljarrah 2020년 9월 21일
thank you Ameer. it is working
Ameer Hamza
Ameer Hamza 2020년 9월 21일
I am glad to be of help!

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

추가 답변 (0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by