frudawski

specpeak

The specpeak function determines the spectral peak wavelength for any given spectral power distribution (SPD).

See also: speccentroid

Usage:

sp = speccentroid(lam,spec)

Where:

ParameterDescription
spReturns the spectral peak wavelength.
lamSpecifies the wavelengths, vector or matrix.
specSpecifies the spectral power distribution(s), vector or matrix.

Examples:

Determine spectral peak of the V(\lambda) curve:

lam = 380:780;
VL = ciespec(lam,'VL');
sp = specpeak(lam,VL)

% plotting the result
plot(lam,VL)
grid minor
hold on
plot([sp sp],[0 1],'k--')
xlabel('\lambda in nm')
ylabel('relative SPD')
hold off

See also: ciespec

Result:

sp = 555

Determine the spectral peaks of the α-opic functions:

lam = 380:780;
spec = ciespec(lam,'aopic');
aopicpeak = specpeak(lam,spec)

See also: ciespec

Result:

aopicpeak = 

   448
   541
   569
   507
   490

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 that comments are saved and published after review.