I have some data stored in a mat file spreadsheet when i try to run my kmeans.m script I get this error and I cant work out whats going on?
Attempt to execute SCRIPT kmeans as a function
Error in ==> kmeans at 10
[clustIDX, clusters, interClustSum, Dist] = kmeans(data,
K, 'options',opts, ...
kmeans.m
in your MATLAB path? - abcdkmeans
is a toolbox function that you're trying to use. If you also name your script askmeans.m
, then that has precedence in MATLAB's search and it calls it instead of the function you actually want, which causes the error you're seeing. - abcd