frudawski

plotspec

The plotspec function plots a given spectrum with corresponding colours in the visible wavelength part.

Usage:

plospec(lam,spec,mode)

where:

ParameterDescription
lamSpecifies the wavelength steps, vector.
specDefines the to be plotted spectrum, vector.
modeSpecifies the background colour: ‘white’ (default) or ‘black’.

Examples

Plot standard illuminant D65 spectrum in colour:

lam = 360:830;
spec = ciespec(lam,'D65');
plotspec(lam,spec)

see also: ciespec

Result:

Plot standard illuminant A spectrum in colour on black background:

lam = 360:830;
spec = ciespec(lam,'A');
plotspec(lam,spec,'black')

See also: ciespec

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.