Bar Graph from a table : Error Xdata must be unique
古いコメントを表示
A B C
0 '0' 2
0 '1' 11
1 '0' 32
1 '1' 33
2 '0' 38
2 '1' 31
3 '0' 47
3 '1' 39
Want to have C on the Y axis, X axis : 0,1,2,3 , bars colored for B : 0,1.
4 件のコメント
Adam Danz
2022 年 2 月 9 日
As the error message indicates, you have multiple x-values so Matlab doesn't know what to do with it, and neither do we 🙂.
Do you want 2 sets of bar plots?
Do you want to somehow combine the Y data for the same x-data groups?
Something else?
Frederick Awuah-Gyasi
2022 年 2 月 9 日
編集済み: Frederick Awuah-Gyasi
2022 年 2 月 9 日
Frederick Awuah-Gyasi
2022 年 2 月 9 日
編集済み: Frederick Awuah-Gyasi
2022 年 2 月 9 日
Frederick Awuah-Gyasi
2022 年 2 月 9 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Networks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
