How do I display the bin count of each bar at the top of each histogram bar?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
jim scherr
el 11 de Jul. de 2018
Comentada: Thomas Lutz
el 25 de En. de 2023
I'm using the histogram function to display a histogram. How do I display the bin count of each bar at the top of each histogram bar?
0 comentarios
Respuesta aceptada
KSSV
el 11 de Jul. de 2018
x = randn(10000,1);
h = histogram(x) ;
x = h.BinEdges ;
y = h.Values ;
text(x(1:end-1),y,num2str(y'),'vert','bottom','horiz','center');
box off
3 comentarios
Más respuestas (0)
Ver también
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!