how to get xyz value

3 views (last 30 days)
thelong le
thelong le on 15 Jun 2021
Commented: David Hill on 16 Jun 2021
i am new to matlab, how to output calculated value XYZ from RGB value entered from table, what command should i use, thanks!

Answers (1)

David Hill
David Hill on 15 Jun 2021
rgb2xyz(RGB)
  2 Comments
thelong le
thelong le on 16 Jun 2021
i understand rgb2xyz(RGB) command help to convert color space, but i want to know the xyz value show specific value, do you have any advice for me? thanks!
David Hill
David Hill on 16 Jun 2021
I am having a hard time understanding your question.
%if rgb=[50 60 70], then
xyz=rgb2xyz(rgb)%xyz values will be the output of the function

Sign in to comment.

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!