Put data into bins with pre-specified intervals

2 views (last 30 days)
I have data distributed over [0,1]. I want to put data into pre-specified bins such as 0:.1:1. How can one do this?

Accepted Answer

Cris LaPierre
Cris LaPierre on 4 Aug 2020
Use histcounts and specify the bin edges using the syntax [N,edges] = histcounts(X,edges)

More Answers (0)

Categories

Find more on Particle & Nuclear Physics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!