How to draw an histogram?
5 ビュー (過去 30 日間)
古いコメントを表示
I have two set of data in which i Know the frequencies of both. How do I draw the histograms of the two set of data on the same graph?
0 件のコメント
回答 (1 件)
Steven Lord
2024 年 5 月 8 日
So you know the bin edges and the bin counts? Call histogram with 'BinEdges' and 'BinCounts' along with the vectors of bin edges and bin counts.
binedges = (1:5).^2; % let's use some non-uniformly spaced edges
bincounts = [33 62 17 50]; % arbitrary values
histogram('BinEdges', binedges, 'BinCounts', bincounts)
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!