Discretize data into certain categories
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!