How to plot multiple box plots on same graph with same size vector?

Hello, I have two vectors with the same length and I want to plot both in the same boxplot but I can only see one
I tried this
vol = [D1(:,1);C1(:,1)];
plot = figure;
boxplot(vol);
title('Volume differences')
ylabel('Volume [m^{3}]')

 採用された回答

Wan Ji
Wan Ji 2021 年 8 月 28 日

0 投票

Hi, just change line 1
vol = [D1(:,1);C1(:,1)];
to
vol = [D1(:,1), C1(:,1)];

2 件のコメント

DulceEien
DulceEien 2021 年 8 月 28 日
thank you :))
Wan Ji
Wan Ji 2021 年 8 月 28 日
My pleasure

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2021 年 8 月 28 日

コメント済み:

2021 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by