Listing values that fall into histogram
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
iceskating911
el 14 de Jun. de 2022
Editada: iceskating911
el 15 de Jun. de 2022
Hello! I've been trying to figure out how to see all values that fall into a certain bin size. Right now, my code looks like the following for two double arrays because my initial goal was to sum the bins (sum the biomass of each cell size, where the edges of the bin represent cell size (0.5-1, 1-2, 2-4, etc)
2 comentarios
Respuesta aceptada
dpb
el 14 de Jun. de 2022
edges = 2.^(-2:14);
[N,~,bin]=histcounts(Cell_Biomass_001,edges);
BinSums=groupsummary(Cell_Biomass_001,bin,'sum');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations 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!