Convert spectrum to color
Version 1.0.0 (134 KB) by
Tingbiao Guo
This script can convert reflectance/transmittance data of the object to color and plot it in CIE diagram.
%It can load spectrum from an excel, the format should as follow:
%column 1: wavelength data(unit: nm/m)
%column 2 to n: reflectance/transmittance spectrum
%The default light source is D65,one can change light source in
%spectrum2XYZ function
%Author:Tingbiao Guo, Zhejiang University
Cite As
Tingbiao Guo (2023). Convert spectrum to color (https://www.mathworks.com/matlabcentral/fileexchange/98289-convert-spectrum-to-color), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |