swarmchart​とboxplotの重​ね合わせが上手くいか​ずエラー

조회 수: 5 (최근 30일)
賢弘 丸谷
賢弘 丸谷 2022년 2월 16일
답변: あいう えお 2022년 2월 28일
swarmchartでタイプダブルの入力因数が未定義とエラーが出ます。
clc
clear
data = xlsread("data")
y = data(:,1:2); %1:グループの平均値, 2:グループの平均値
x = data(:,3:4); %3:1の標準偏差, 4:2の標準偏差
boxchart(y)
hold on
swarmchart(x,y)

답변 (1개)

あいう えお
あいう えお 2022년 2월 28일
意図したグラフを表示できるコードであるのか、確認してみてください
Y = randn(10);
y = mean(Y(:,1:2))
y = 1×2
0.2194 0.0699
x = std(Y(:,1:2))
x = 1×2
0.9328 0.6155
boxchart(y)
hold on
swarmchart(x,y)

제품

Community Treasure Hunt

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

Start Hunting!