File Exchange

image thumbnail

Diffraction grating, version 2

version (11.1 KB) by Tom O'Haver
Aids for learning and teaching about the principles of diffraction gratings.


Updated 04 Nov 2011

View Version History

View License

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
Version 2 modified to run on recent versions of Matlab.

Cite As

Tom O'Haver (2021). Diffraction grating, version 2 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Yusuf Karli


Nguyen Trong Nhan


MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: RTslider

Community Treasure Hunt

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

Start Hunting!