how to plot bar3 for a data which has 3 columns

I have a data which has three columns. I want to show it on a 3d bar with all the three variables.
I am getting this error "X must be a matrix with two columns".

Answers (1)

How would you use your 3 columns to create a histogram?
If you have the counts already, perhaps what you really want is bar3?

2 Comments

Yes so I tried bar3 function also but still getting an error
You'll hvae to share more details, then. Consider saving your variable to a mat file and attaching it to your post using the paperclip icon. It would also be helfpul if you could describe what data each column contains.

Sign in to comment.

Tags

Asked:

on 21 Mar 2022

Commented:

on 21 Mar 2022

Community Treasure Hunt

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

Start Hunting!