Hello,
I need to use boxplot, but how to plot boxplot like plot(x,y), because the x-label (position) for my boxplot is unified
like
load data.mat
x=[1,2,5,10,16]
boxplot(x, data)
Thanks

 채택된 답변

Voss
Voss 2023년 3월 10일
data = magic(5);
x=[1,2,5,10,16];
boxplot(data,x);

댓글 수: 4

Miraboreasu
Miraboreasu 2023년 3월 11일
Thanks, I mean like there are 3 more distance bigger between 2 5 than 1 and 2
Voss
Voss 2023년 3월 11일
편집: Voss 2023년 3월 11일
data = magic(5);
x=[1,2,5,10,16];
boxplot(data,x,'Positions',x);
Miraboreasu
Miraboreasu 2023년 3월 11일
Thank you
Voss
Voss 2023년 3월 11일
편집: Voss 2023년 3월 11일

You're welcome!

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

추가 답변 (0개)

제품

릴리스

R2022a

질문:

2023년 3월 10일

편집:

2023년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by