How to draw an histogram?
조회 수: 4 (최근 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!