What is the decimal RGB scale used in Matlab called?
Show older comments
Hi there,
I have been trying lots of websites to find colours for my plots. The colours i find on webistes that are RGB are ont on the decimal scale. Therefore is there another scale I should search for, or is there a way to convert them?
Example:
- RGB: (37, 147, 174)
Many thanks!
1 Comment
Rik
on 7 Feb 2019
The colors in Matlab are generally 8bit, meaning that the colors are scale 0-255. So I don't know what you would mean by converting.
Accepted Answer
More Answers (2)
TADA
on 7 Feb 2019
1 vote
some functions like plot use color intensity values (between 0 and 1) to represent RGB values, instead of what you are used to and is used in web browsers (values between 0 and 255).
you can just take your RGB vector and divide it by 255
1 Comment
Stephen23
on 8 Feb 2019
+1 at least someone got the scaling right.
Walter Roberson
on 7 Feb 2019
0 votes
uint8() the decimal values to get something that MATLAB will understand.
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!