This is a small GUI for interactively modelling simple lens arrangements. Collimated and diverging rays are propagated through the lens system, where thin lenses are assumed throughout. If an real image is formed, its position and magnification are noted. An arbitrary number of lenses are supported, and may be added or removed interactively.
Click and drag to change lens focal lengths and positions.
Click the upper labels to manually alter distances, click the lower labels to manually alter focal lengths.
Cite As
Jason (2024). LensLab (https://www.mathworks.com/matlabcentral/fileexchange/52171-lenslab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.5.0.0 | Fixed hard figure size, and Matlab version checking |
||
1.4.0.0 | Fixed plotting bug with 2016b |
||
1.3.0.0 | Added clickable labels. |
||
1.2.0.0 | Added distance display |
||
1.1.0.0 | Removed bug where all lenses could be deleted. |
||
1.0.0.0 |