Filter löschen
Filter löschen

Sorting into equal sized bins

1 Ansicht (letzte 30 Tage)
Muneer
Muneer am 14 Feb. 2014
Kommentiert: Muneer am 14 Feb. 2014
Hello,
I have ~72000 elements in a matrix and I want to sort those elements into 10 equally sized bins (not equally spaced). Is there a function that will allow me to find what the ranges are of each of the bins? So each bin should have ~7200 elements and I'd like to know what value the first group has to be above, the second group, etc.
Thanks in advance!

Akzeptierte Antwort

John D'Errico
John D'Errico am 14 Feb. 2014
So, if you did a sort, then what would the 7200th element tell you? The 14400th element? Etc?
  1 Kommentar
Muneer
Muneer am 14 Feb. 2014
Completely overlooked this. This would work fine. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 14 Feb. 2014
A=rand(72000,1)
B=reshape(A,7200,10)

Kategorien

Mehr zu Shifting and Sorting Matrices 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