OpticalMedium

OpticalMedium is a simple class that provides refractive index and permittivity of a material.
307 Downloads
Updated 23 Feb 2016

View License

OpticalMedium gives refractive index and permittivity of a material.

It uses Sellmeyer formula to retrieve refractive index and permittivity
at specified frequency, wavelength or photon energy in eV.
The available materials are listed in the file 'sellmeyer.csv', which
can be easily edited to add more materials.

examples:
n = OpticalMedium('BK7').refractiveIndex(800, 'nm');
n = OpticalMedium('SF10').refractiveIndex(2, 'eV');
n = OpticalMedium('BK7').refractiveIndex(350, 'THz');
eps = OpticalMedium('BK7').permittivity(800, 'nm');
eps = OpticalMedium('BK7').permittivity(2, 'eV');
eps = OpticalMedium('SF5').permittivity(350, 'THz');

References:
Refractive index values are mainly taken from http://refractiveindex.info/
and from SCHOTT data sheets.

Cite As

Alberto Comin (2024). OpticalMedium (https://www.mathworks.com/matlabcentral/fileexchange/55412-opticalmedium), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Atomic, Molecular & Optical in Help Center and MATLAB Answers
Acknowledgements

Inspired by: waveUnit

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

OpticalMedium/

Version Published Release Notes
1.0.1.1

small fixes

1.0.1.0

added validity range for Sellmeier formula

1.0.0.0