histfit (adding values to histogram bins)

7 visualizaciones (últimos 30 días)
Wasim Ramadan
Wasim Ramadan el 3 de Dic. de 2020
Respondida: Ashish Mishra el 9 de Dic. de 2020
Hello Everyone,
I am trying to show both PDF nad Histogram in one plot. Therefore, I am using histfit.
But what I need to do, is to show the values inside each bin on the plot (above each bin).
Is it possible?
Thanks.

Respuestas (1)

Ashish Mishra
Ashish Mishra el 9 de Dic. de 2020
You can position any text or values inside or on top of bins using text function.
Firstly read the values of the bins in some variables and use num2str to convert it into string and use text to postion it.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by