I need and example showing how to use K-means clustering in MATLAB but using some prespecified datapoints as the initial seeds.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
will run K-means with predefined datapoints
seeds(such askrows ofX, but you can choose any seeds as long as it’s ak-by-p array, where p is the number of columns ofX) as initial seeds. Note that if you specifyseeds, you don’t need to specifyk(pass[]instead).kmeanswill infer from the number of rows ofseedshow many clusters you want.By default,
kmeanschooseskrandomly picked rows ofXas seeds.