Matlab + Light = MatLight This is a simple library for simulating the spectrum of LED's, Laser's and more.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation of Matlab Version R2019b.
- Download the MatLight.
- Move the downloaded MatLight folder into any directory of your choice.
- Open Matlab and choose the MatLight directory as the current directory.
First create a light simulation:
mySim = lightSim(1,1000,1000);
Create a single LED that we want to simulate with an certain certain spectral width, intensity and wavelength:
led1 = led.led2(mySim, 'led1', 'W', 365, 20, 1e-3);
Create a black body radiator with a specifif optical power and color temperature:
blackBody= blackBody(mySim, 'sun', 'W', 1, 6500);
Plot the spectral output of the created sources:
led.plotAll(blackBody);
- MATLAB - Version R2019b
- HanSur94 - HanSur94