how to plot bar3 for a data which has 3 columns

조회 수: 1 (최근 30일)
Kushagra Kirtiman
Kushagra Kirtiman 2022년 3월 21일
댓글: Cris LaPierre 2022년 3월 21일
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".

답변 (1개)

Cris LaPierre
Cris LaPierre 2022년 3월 21일
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
Kushagra Kirtiman
Kushagra Kirtiman 2022년 3월 21일
Yes so I tried bar3 function also but still getting an error
Cris LaPierre
Cris LaPierre 2022년 3월 21일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by