plot x label like plot(x, y) in boxplot

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 日

1 投票

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