필터 지우기
필터 지우기

how to get color name as output corresponding to it vector as input

조회 수: 4 (최근 30일)
Rohan Singla
Rohan Singla 2020년 12월 16일
편집: Vinay Ramesh 2020년 12월 22일
for eg if i give input vector a=[1,0,0] the output shold be color name corresponding to this vector

답변 (1개)

Vinay Ramesh
Vinay Ramesh 2020년 12월 18일
편집: Vinay Ramesh 2020년 12월 22일
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!

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by