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!