开发者

matlab get color

开发者 https://www.devze.com 2023-01-02 00:03 出处:网络
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

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

精彩评论

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

关注公众号