How do you bin data by a certain value? and count the values in each bin?
1 view (last 30 days)
Show older comments
How do you bin data by a certain value? For example I have 1 column of data that consists of numbers that represent time in seconds. I would like to bin the data by 500ms, therefore .5. (I attached the dataset I'm working with)
I've attached the dataset I'm working with here.
An example would be:
- First bin: 0 thru 0.5 --> 1 counts
- Second bin: .05 thru 1 --> 4 counts
0 Comments
Answers (1)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!