How can I do grouping in 3-D bar?
1 回表示 (過去 30 日間)
古いコメントを表示
I have this data Z = rand(9,5);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150880/image.jpeg)
I can group my data on the Y axis using the following code:
Y = [1 2 3 5 6 7 9 10 11];
bar3(Y,Z)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150881/image.jpeg)
Now I want to group my data on the X axis , how can I do this? Thanks a lot!
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 10 月 19 日
Did you try bar3(Z, Y)?
3 件のコメント
Image Analyst
2013 年 10 月 19 日
Well what is Z - you never told us. Do you have a simple script you can attach?
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!