Diffraction grating, version 2
A collection of m-files aimed at learning and teaching about the principles of diffraction gratings. Some of these show a cross section of the geometry of a diffraction grating, a common illustration in textbooks of optics, spectroscopy, and analytical chemistry. Simple keystroke commands allow real-time interactive control of the incidence angle, grating ruling density (lines/mm), wavelength, and diffraction order. Others demonstrate how grating operation arises from the interference of reflections from multiple grooves. For more details, see http://www.wam.umd.edu/~toh/models/matlab/DiffractionGrating.htm
Version 2 modified to run on recent versions of Matlab.
Cite As
Tom O'Haver (2024). Diffraction grating, version 2 (https://www.mathworks.com/matlabcentral/fileexchange/11687-diffraction-grating-version-2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Chemistry >
- Sciences > Physics >
- Engineering > Electrical and Computer Engineering > Optics >
Tags
Acknowledgements
Inspired by: RTslider
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.