3dbar chart of columns of data

1 view (last 30 days)
Benjamin Cowen
Benjamin Cowen on 16 Dec 2016
Commented: Star Strider on 16 Dec 2016
I have my x values stored under x, which is a single column with 400 rows.
Then my y is 6 columns of 400 rows
How can I get 6 bars corresponding to each row, but 3d style so they do not overlap one another?

Answers (1)

Star Strider
Star Strider on 16 Dec 2016
Use the bar3 function.
  5 Comments
Benjamin Cowen
Benjamin Cowen on 16 Dec 2016
i attached matlab figure, hopefully you can see what I am talking about
Star Strider
Star Strider on 16 Dec 2016
Try adding these lines after you plot the figure:
axis square
view([135 20])
Experiment with the view arguments to get the result you want.

Sign in to comment.

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!