开发者

matlab get color

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜