Borrar filtros
Borrar filtros

hi, I want to split my data set into different series lets say its from 2.0 to 2.99 I want to make intervals like 2.00 - 2.199, 2.2-2299, 2.3-2.3999 and then would like to to count the number of values for each interval.

1 visualización (últimos 30 días)
hi, I want to split my data set into different series lets say its from 2.0 to 2.99 I want to make intervals like 2.00 - 2.199, 2.2-2299, 2.3-2.3999 and then would like to to count the number of values for each interval.
Next would be to write a loop to measure the value Cumulative Total Above Lower value in Ranges
Please help

Respuesta aceptada

Star Strider
Star Strider el 6 de Jun. de 2014
It is called a histogram count. There are several MATLAB functions that can do the counting with your data and your bin ranges as input. The histc function is closest to what you want to do.
I have no idea what you mean by ‘measure the value Cumulative Total Above Lower value in Ranges’, so please describe what you want to do in a bit more detail.
  7 comentarios

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 6 de Jun. de 2014
Try this:
values = [...
2.745
2.422
2.876
2.477
2.440
2.674
2.600
2.450
2.630
2.439
2.432
2.483]
edges = 2 : 0.1 : 3
counts = histc(values, edges)
cdf = cumsum(counts)'
backwardsCDF = fliplr(cdf)

Categorías

Más información sobre MATLAB 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!

Translated by