Sorting into equal sized bins
显示 更早的评论
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!
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2014-2-14
A=rand(72000,1)
B=reshape(A,7200,10)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!