help with kmeans clustering
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abdelmalek Benaimeur
el 6 de Jun. de 2019
Editada: Abdelmalek Benaimeur
el 11 de Jun. de 2019
hello I'm working on k-means clustering algorithms I'm using the default function of matlab
when i read the documentation i found that the distance hamming used only with binary dataset
so i tried this :
B=randi([2:3],[150,7])>2;
>> idx=kmeans(B,4,'Distance','hamming');
it's so clear that B is binary but when i click on run button i obtain this error
Undefined function 'kmeans2' for input arguments of type 'struct'.
Error in kmeans (line 322)
[varargout{1:nargout}] = kmeans2(X,k, distance, emptyact,reps,start,...
any ideas about where the problem is .?
11 comentarios
Walter Roberson
el 7 de Jun. de 2019
dbstop if error, run, and examine the parameters being passed to the call.
Respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!