I am using matlab开发者_运维百科 for cluster visualization. I want to somehow get the color of my current cluster center fill in the plot and draw line of same color to cluster members. How can I get the color?
This is a generic answer to finding the color of any plot object in Matlab.
Select the object in the plot and use gco to get its color attribute.
c = get(gco,'Color');
Without any specific information about how and what you are plotting, it is not possible to give a more specific answer.
精彩评论