export frequency data from a histogram

40 ビュー (過去 30 日間)
P_L
P_L 2019 年 4 月 16 日
コメント済み: Star Strider 2020 年 11 月 27 日
Hi there, I have a histogram that looks like this:
histogram.png
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

採用された回答

Star Strider
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;
See the documentation on Histogram Properties (link) for a list of all of them.
  5 件のコメント
James Hughes
James Hughes 2020 年 11 月 26 日
What's the difference between BinCounts and Values? They seem to be the same.
Star Strider
Star Strider 2020 年 11 月 27 日
It’s an example of how to get various data from the function.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by