frudawski

plotcolour

The plotcolour function plots a series of colours defined in an n\times 3 matrix.

Note: The function also works with the alternative spelling: plotcolor

Usage:

plotcolour(c)

Where:

ParameterDescription
cIs a n\times 3 colour matrix.

Examples

Plot 5 different colours:

c = colours(5);
plotcolour(c)

See also: colours

Result:

Plot CIE Colour Rendering Index (CRI) reference colours:

lam = 380:780;
CRI = ciespec(lam,'CRI');
D65 = ciespec(lam,'D65');
spec = CRI.*D65;
c = spec2srgb(lam,spec);
plotcolour(c)

See also: spec2srgb

Result:

Leave a comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know and accept that comments may be saved and published after review.