How to move bars along the X axis in bar3?

12 ビュー (過去 30 日間)
Milad Zarei
Milad Zarei 2017 年 11 月 27 日
回答済み: Sonam Gupta 2017 年 12 月 12 日
I am trying to plot bars on a background image using bar3, but I can not get the bars on the right position.
I know this commend bar3(Y,Z) can help me to move the bar on the Y axis, but I need to move it along the X axis as well.
I attached an image to give you an idea what I want to make.
I appreciate your input. Thanks.

回答 (1 件)

Sonam Gupta
Sonam Gupta 2017 年 12 月 12 日
Following is the link to a stackoverflow post suggesting a workaround to do the same:
However that will lock the code strongly to the current bar3 implementation which could cause future compatibility issues.


Find more on 2-D and 3-D Plots in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by