Sorting into equal sized bins

5 ビュー (過去 30 日間)
Muneer
Muneer 2014 年 2 月 14 日
コメント済み: Muneer 2014 年 2 月 14 日
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!

採用された回答

John D'Errico
John D'Errico 2014 年 2 月 14 日
So, if you did a sort, then what would the 7200th element tell you? The 14400th element? Etc?
  1 件のコメント
Muneer
Muneer 2014 年 2 月 14 日
Completely overlooked this. This would work fine. Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 14 日
A=rand(72000,1)
B=reshape(A,7200,10)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by