Skip to content

A MATLAB Library for simulating Led's and more.

Notifications You must be signed in to change notification settings

HanSur94/MatLight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatLight 🚥

Matlab + Light = MatLight This is a simple library for simulating the spectrum of LED's, Laser's and more.

Table of contents

Getting Started

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.

Prerequisites

Installation of Matlab Version R2019b.

Installing

  1. Download the MatLight.
  2. Move the downloaded MatLight folder into any directory of your choice.
  3. Open Matlab and choose the MatLight directory as the current directory.

Examples

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);

Built With

Authors

Releases

No releases published

Packages

No packages published

Languages