How can I create bins in Matlab using predefined counts?

조회 수: 1 (최근 30일)
Neha Binish
Neha Binish 2020년 11월 22일
댓글: Neha Binish 2020년 11월 23일
I have a set of intervals and the count of the data that lie in that interval like it is given below -
INTERVALS COUNT
2 < T < 4 20
4 < T < 6 5
6 < T < 8 13
Is it possible to save this data as a bin on MATLAB?
I have tried using discretize() and histcounts() but it only allows me to specify the edges and not the bin count.

채택된 답변

Steven Lord
Steven Lord 2020년 11월 23일
histogram('BinEdges', [2, 4, 6, 8], 'BinCounts', [20, 5, 13]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by