File Exchange

image thumbnail

LensLab

version 1.5.0.0 (8.69 KB) by Jason
Use this small app to model simple lens setups.

24 Downloads

Updated 10 Feb 2017

View License

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.

Comments and Ratings (7)

Chris Deep

john linden

Is it possible /Can you add an option to specific the width of the input collumated beam?

Thanks!

Great. Thank you.

Jason

The off-screen issue should be fixed now!

Hi. Looks like a great app but I can't get it to run on my version of Matlab 2016b. TOnly the bottom half of the lenslab startup window appears at the top of my screen and can't be accessed. Any idea how I can rectify this? Thanks

Bernd

Updates

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.

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor