How to built a histogram in MatLab as Excel did it?

2 visualizaciones (últimos 30 días)
Serhii Sheinych
Serhii Sheinych el 21 de Nov. de 2019
Comentada: Serhii Sheinych el 21 de Nov. de 2019
I have a vector of 7 integer values and try to built a histogram, but I have a result, which i did not expected.
I've built a histogram in Matlab, but it has different view, comparing to excel? How to built a histogram like on the first photo, but in Matlab?

Respuesta aceptada

dpb
dpb el 21 de Nov. de 2019
y=[14;21;14;9;16;10;16];
bar(y)
That's a bar plot, not histogram.

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by