Average in interval histogram

Hello, I want calculate mean of each interval . Suppose interval is equal.

1 件のコメント

per isakson
per isakson 2016 年 7 月 22 日
Try
X = rand(100,1);
[N,edges,bin] = histcounts( X );
mean_of_forth_bin = mean( X(bin==4) )
outputs
mean_of_forth_bin =
0.7103

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Distribution Plots についてさらに検索

タグ

質問済み:

2016 年 7 月 22 日

コメント済み:

2016 年 7 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by