Put data into bins with pre-specified intervals

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

0 Stimmen

Use histcounts and specify the bin edges using the syntax [N,edges] = histcounts(X,edges)

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by