Average in interval histogram

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

댓글 수: 1

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 Exchange에서 Data 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