Average in interval histogram
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I want calculate mean of each interval . Suppose interval is equal.

1 commentaire
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
Réponses (0)
Voir également
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!