Azzera filtri
Azzera filtri

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 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Star Strider
Star Strider il 6 Giu 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 Commenti

Accedi per commentare.

Più risposte (1)

Image Analyst
Image Analyst il 6 Giu 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)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by