How do I display the bin count of each bar at the top of each histogram bar?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
KSSV
il 11 Lug 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!