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

조회 수: 12(최근 30일)
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;
title('Volume differences')
ylabel('Volume [m^{3}]')

채택된 답변

Wan Ji
Wan Ji 2021년 8월 28일
Hi, just change line 1
vol = [D1(:,1);C1(:,1)];
vol = [D1(:,1), C1(:,1)];

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by