How do I display the bin count of each bar at the top of each histogram bar?
11 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KSSV
2018 年 7 月 11 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!