Converts component colors to MATLAB Color vector.


Updated 28 Apr 2003

No License


Convert Red, Green, Blue component color values to a MATLAB Color vector. Where each component takes a maximum value of 255, that corresponds to a value of 1 in the color vector.

Cite As

Richard Medlock (2023). RGB (https://www.mathworks.com/matlabcentral/fileexchange/3324-rgb), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes