Average in interval histogram

4 vues (au cours des 30 derniers jours)
Dani D
Dani D le 22 Juil 2016
Commenté : per isakson le 22 Juil 2016
Hello, I want calculate mean of each interval . Suppose interval is equal.
  1 commentaire
per isakson
per isakson le 22 Juil 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by