필터 지우기
필터 지우기

Sorting into equal sized bins

조회 수: 1 (최근 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 CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by