3dbar chart of columns of data

2 views (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
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.

Tags

Community Treasure Hunt

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

Start Hunting!