how to get color name as output corresponding to it vector as input
3 visualizzazioni (ultimi 30 giorni)
Vinay Ramesh il 18 Dic 2020
Modificato: Vinay Ramesh il 22 Dic 2020
Doesn't look like there is a built in MATLAB function which takes the RGB vector as input and gives the corresponding long or short name of the color as output. You could see the list of eight predefined colors with their RGB triplet equivalents, short names and longnames in the below documentation link
Also, here is the link to a Blog post on a File Exchange community pick about the conversion between RGB and color names. https://blogs.mathworks.com/pick/2019/04/26/convert-between-rgb-and-color-names/
Hope it helps!