Summary
Full Transcript
Viewers have asked me to describe my homemade MatLab function that performs ray tracing on a refractive lens system. The program can sequentially analyze an arbitrary number of lens elements with an aperture stop located anywhere along the lens. Aberration coefficients are computed, along with Petzval radius and distortion percent. System properties (aperture metrics and field metrics) are also included in a system report file. All this in less than 300 lines of code. The relevant optical concepts are explained along the way. I made this video, at the request of viewers, in order to provide an example program to those who wish to write their own code, and hopefully write it better than I did. Please don't ask me to provide a copy of my code. The idea here is to provide an example to people who want to write their own program relying on their own programming skills and their own preferred programming language. It's right in the title, "Write you own..." Please consider clicking on "LIKE". I don't get paid for creating this content, and your positive feedback is the only encouragement that I receive to continue creating this kind of helpful material. Since making this video, I have since started using a more accurate non-paraxial form of the diffraction paraxial ray trace equation (which I often call PRTE2). I think it will have small effect, but maybe enough to improve accuracy when there is a large number of surfaces. Here's the link to the video showing this non-paraxial form. https://youtu.be/UgjOsUgAN0M?t=1273 References are made in this video to these two books: Introduction to Lens Design: With Practical ZEMAX Examples, by Joseph M. Geary Introduction to Lens Design, by José Sasián OpticStudio is a product of Zemax, an Ansys Company, www.zemax.com MatLab is a product of MathWorks, www.mathworks.com #lensdesign #opticaldesign
