Want to retain location in a histogram plot

1 回表示 (過去 30 日間)
Bran
Bran 2014 年 11 月 3 日
回答済み: Star Strider 2014 年 11 月 3 日
I have plotted a histogram using the hist function in MATLAB however, I want to find out the original location of the values in the various bins when they were in my original vector. How do I go about doing that?

採用された回答

Star Strider
Star Strider 2014 年 11 月 3 日
Use the histc function instead of hist to do that. From the histc documentation:
  • [bincounts,ind]= histc(_) returns ind, an array the same size as x indicating the bin number that each entry in x sorts into. Use this syntax with any of the previous input argument combinations.

その他の回答 (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