Put data into bins with pre-specified intervals

1 Ansicht (letzte 30 Tage)
alpedhuez
alpedhuez am 3 Aug. 2020
Kommentiert: alpedhuez am 4 Aug. 2020
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Particle & Nuclear Physics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by