Multigroup Boxplot dimension error
古いコメントを表示
Hello, I am struggling with a Boxplot using multigroup. My data is formatted as below. I like to apply a grouping variable for the columns and also for the rows. In this case, the 3 values per column belong to an observed, simulated and expected value. Within the rows, there are different settings. This is a minimal working example, but I really don't understand what the error is about, because all rows/columns match from my point of view.
But I get the error:
Error using boxplot>convertToCellarrayOfColumnVectors (line 1082)
All columns in 'G' must have the same length.
data = rand(3,10);
groupH = [0,1,0,3,1,3,0,1,1,0];
groupV = repmat([0;1;2],1,10);
boxplot(data, {groupH, group})
The Output as desired as having 3 Boxplots for same category out of h with 3 different classes from groupV directly beside. I found the following example after posting, which is quite similar, but I am really confused adapting this code for my purposes.
6 件のコメント
KALYAN ACHARJYA
2018 年 9 月 25 日
Can you share the code/representational code??
jonas
2018 年 9 月 25 日
How do you call Boxplot?
Jan Maluche
2018 年 9 月 26 日
jonas
2018 年 9 月 26 日
Can you explain what your desired output is? How many boxes are you looking for?
Jan Maluche
2018 年 9 月 26 日
jonas
2018 年 9 月 26 日
Okay I see the problem. Will post an answer shortly.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Exploration and Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
