export frequency data from a histogram
조회 수: 41 (최근 30일)
이전 댓글 표시
Hi there, I have a histogram that looks like this:
and I would like to extract the frequency data (y-data) so I can make a seperate plot with points.
Any help would bge much appreciated
Many thanks
댓글 수: 0
채택된 답변
Star Strider
2019년 4월 16일
Use a handle to return the information from the histogram function, then get the values you want:
figure
hh = histogram(x);
edges = hh.BinEdges;
counts = hh.BinCounts;
values = hh.Values;
댓글 수: 5
James Hughes
2020년 11월 26일
What's the difference between BinCounts and Values? They seem to be the same.
추가 답변 (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!