Bining some data in 50 classes without knowing the limits

2 次查看(过去 30 天)
Hello every body,
I have a huge amount of data ( 57000 nummbers ) and I need them to be devided into 50 groups between 0 and 25 ( bin width of 0.5) and I want to know how many nummbers are gathered in any interval. later I need to be able to make a graph out of this data.
what should I do?
Thanks

回答(1 个)

Kevin Claytor
Kevin Claytor 2014-11-20
Sounds like you're trying to make a histogram (hist in revisions prior to R2014b). Since you have specific bin locations, you might want to have a look at the sections on bin edges. You're edges would be something like [0, 0.5, 1.0, ... , 25] Although, if there are values outside this range, the last few bins will catch ALL the values lower or higher than their edge, so you might want to consider an overflow bin; [-1, 0, 0.5, ..., 25, 26]

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by