![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172345/image.png)
Hist3, height bar depends on a third variable
1 回表示 (過去 30 日間)
古いコメントを表示
bars height on hist3 depends on frequency of first and second variable. How can I height of those bars be related to another variable. Maybe hist3 is not the right function to achieve that.
Thanks
0 件のコメント
回答 (1 件)
arich82
2015 年 12 月 11 日
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172345/image.png)
x = 1:5;
y = 1:10;
[X, Y] = meshgrid(x, y);
Z = sqrt(X.^2 + Y.^2);
figure;
bar3(y, Z);
axis tight;
Does this do what you want? If not, please explain in the comments.
参考
カテゴリ
Help Center および File Exchange で Bar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!