pspectro: Photometric and Colorimetric Calculations

A collection of functions to process irradiance data and calculate the color rendering index

You are now following this Submission

The main function pspectro.m is well documented, in the folder type help pspectro for documentation.

pspectro.m is a collection of functions written to calculate the photometric and colorimetric data from the measured irradiance of a source. However, the supplied input can be any two column vector that contains the wavelength and power.

The functions calculate the lux (illuminance) of the source, the tristimulus values (CIE 1931 standard 2 degree observer), the general color rendering index (Ra) and the special color rendering indicies (Ri).

The functions were used to study and optimize solid state lighting and mentioned in this publication:

Aldrich, M., Dynamic Solid State Lighting, Master's Thesis, Massachusetts Institute of Technology (2010).

Project Website: www.media.mit.edu/resenv/lighting/

Cite As

Matt Aldrich (2026). pspectro: Photometric and Colorimetric Calculations (https://www.mathworks.com/matlabcentral/fileexchange/28185-pspectro-photometric-and-colorimetric-calculations), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

added project website

1.0.0.0