how to cluster using matlab

hi all. im completely new in clustering!would you please explain to me how i can cluster a 8191*300 matrix into 3 groups? thank you for your help

 Respuesta aceptada

Sad Grad Student
Sad Grad Student el 18 de Feb. de 2015
Editada: Sad Grad Student el 18 de Feb. de 2015

0 votos

Easiest to implement is kmeans clustering. Look it up!
Matrix = % your 8191x300 matrix
NumC = 3 % number of clusters
idx = kmeans(Matrix,NumC)
idx will give you a vector of size 8191 containing the indices of each cluster(1,2 or 3) the row belongs to.

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Feb. de 2015

Editada:

el 18 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by