What do you mean "sort". You could save them to different variables. For example, if you main matrix is called X and you have cluster information stored in a vector called idx, and there are two clusters numbered 1 and 2:
X1 = X(idx==1,:); X2 = X(idx==2,:);
Is this what you mean?
1 Comment
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/395907-sorting-the-outputs-of-clusters#comment_558374
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/395907-sorting-the-outputs-of-clusters#comment_558374
Sign in to comment.