View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3 KB File ID: #41595 Version: 1.0
image thumbnail



Jurgen (view profile)


Combine basic colors with string syntax to create any RGB color.

| Watch this File

File Information

Using flexible syntax to denote color composition in terms of basic colors, colormix creates an RGB vector with the colors mixed according to one of three mixing modes.

Basic colors are: red, green, blue, cyan, magenta, yellow, black, white.
Used standard MATLAB color string shorthands.

E.g. RGB = colormix('cwCg') combines two parts cyan, one part white and one part green to create a new RGB color.
Order and case do not matter.
May also use numbers: colormix('10kr') has 10 parts black to one part red.

Mixing modes are linear combination and the additive- and subtractive light models.

Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us