Borrar filtros
Borrar filtros

How to plot a histogram after grouping the same values?

2 visualizaciones (últimos 30 días)
수환 김
수환 김 el 30 de Nov. de 2021
Comentada: Hiro Yoshino el 30 de Nov. de 2021
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?

Respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by