MATLAB Answers

how to get xyz value

1 view (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
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.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by