Average in interval histogram
Ältere Kommentare anzeigen
Hello, I want calculate mean of each interval . Suppose interval is equal.

1 Kommentar
per isakson
am 22 Jul. 2016
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
Antworten (0)
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!