Average in interval histogram

2 visualizzazioni (ultimi 30 giorni)
Dani D
Dani D il 22 Lug 2016
Commentato: per isakson il 22 Lug 2016
Hello, I want calculate mean of each interval . Suppose interval is equal.
  1 Commento
per isakson
per isakson il 22 Lug 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

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by