필터 지우기
필터 지우기

Discretize data into certain categories

조회 수: 1 (최근 30일)
Andrew Czeizler
Andrew Czeizler 2019년 5월 13일
편집: Andrew Czeizler 2019년 5월 13일
Hi All,
I am trying to discretize a y vector.
I can use the function -
Y = discretize(X,edges)
quite succesfully, however this descretize to all bins.
But what if i only want 3 classifications, depending on where the points lie in the histogram, ie points that lie in the first block, last block and all the middle blocks?
or points that lie in the first two blocks =1, the last two blocks =2 and all the blocks in the middle =3
Many thanks for your help,
Andrew

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by