Put data into bins with pre-specified intervals

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 8월 3일
댓글: alpedhuez 2020년 8월 4일
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?

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 8월 4일
Use histcounts and specify the bin edges using the syntax [N,edges] = histcounts(X,edges)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by