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?

 Réponse acceptée

Cris LaPierre
Cris LaPierre le 4 Août 2020

0 votes

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

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by