フィルターのクリア

Finding the edges of equally distanced bins

3 ビュー (過去 30 日間)
wesso Dadoyan
wesso Dadoyan 2015 年 8 月 4 日
回答済み: Image Analyst 2015 年 8 月 5 日
I am using 2014a version which doesn't have the histcounts function. Is there a way to find the edges of 10 equally distanced bins in a histogram other than the histcounts function?
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 4 日
give an example

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

採用された回答

Image Analyst
Image Analyst 2015 年 8 月 5 日
[counts,centers] = hist(data, nBins);
So you know the centers. And that means you know the width
binWidth = centers(2)-centers(1)
So the left most edge is just centers - binWidth/2 and the right most edge is centers(end)+binWidth/2, or overall it should be
edges = [centers-width/2, centers(end)+binWidth/2];

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