Histogram Data for mXn data matrix

1 回表示 (過去 30 日間)
Saeid
Saeid 2017 年 9 月 7 日
回答済み: Steven Lord 2017 年 9 月 7 日
I have an nxn array for which I can easily draw a histogram, but if I want to perform further statistics on the data I need to know for example how mnay vaues in the 2D array lie in a multiple specified ranges. How can I do this? This is bascially equivalent to simplifying the 2D matrix into a smaller "histogram" matrix with the number of elements within each range as y and the centerpoint of that range as x.

採用された回答

Steven Lord
Steven Lord 2017 年 9 月 7 日
See the histcounts or histcounts2 functions or the Values, BinEdges, XBinEdges, or YBinEdges properties of the graphics objects created by histogram or histogram2. [The histogram object has BinEdges, histogram2 has XBinEdges and YBinEdges.]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by