OpticalMedium

OpticalMedium is a simple class that provides refractive index and permittivity of a material.

You are now following this Submission

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 (2026). OpticalMedium (https://www.mathworks.com/matlabcentral/fileexchange/55412-opticalmedium), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: waveUnit

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

small fixes

1.0.1.0

added validity range for Sellmeier formula

1.0.0.0