How to Split the K-means clusters into a matrix.
Show older comments
After getting my clusters as idx'
ans =
1 1 1 1 1 1 1 3 3 3 3 3 2 2 2 2 2 2
i am having an issue converting it into a 7*3 matrix with zeroes to fill the empty slots. with each column being a cluster. vec2mat/reshape helps but doesnt fill it apropriately
Answers (0)
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!