필터 지우기
필터 지우기

How to plot a histogram after grouping the same values?

조회 수: 2 (최근 30일)
수환 김
수환 김 2021년 11월 30일
댓글: Hiro Yoshino 2021년 11월 30일
I have 2 rows.
id diff = 10 x 2 table
Var2 Var6
1 100
1 123
2 234
2 456
2 132
2 354
3 153
4 456
4 123
4 125
I want to draw a histogram by grouping 'Var2'.
According to the example above, there are 4 'Var2'. Therefore, there should be 4 histograms.
The code above is the code I used as an example.
Actually, in my data, there are 1 to 144 'Var2' and the number of 'Var6' is random. How do I plot a histogram for 144?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by