Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Star Strider
Star Strider am 6 Jun. 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 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 6 Jun. 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)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by