RGB

Converts component colors to MATLAB Color vector.

You are now following this Submission

RGB(Red,Green,Blue)

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 (2026). RGB (https://uk.mathworks.com/matlabcentral/fileexchange/3324-rgb), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Modify Image Colors in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0