Average in interval histogram
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I want calculate mean of each interval . Suppose interval is equal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155062/image.jpeg)
1 comentario
per isakson
el 22 de Jul. de 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
Respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!