Clear Filters
Clear Filters

how to make lenses in matlab?

61 views (last 30 days)
bsd
bsd on 30 Aug 2011
Commented: PRAKASH JOSHI on 28 Mar 2019
Dear sir/madam,
I am working on optical lenses. I need to create lenses such as biconvex, biconcave, planoconvex and planoconcave for my project. How could I do this in matlab? Looking forward to hearing from you soon.
Thanking you, BSD
  1 Comment
PRAKASH JOSHI
PRAKASH JOSHI on 28 Mar 2019
How do I find the off focus points after the fft

Sign in to comment.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 30 Aug 2011
There is at least one tool for calculating ray-paths through optical systems on the file exchange: http://www.mathworks.co.uk/matlabcentral/fileexchange/27412-opticalbench
HTH
  12 Comments
bsd
bsd on 13 Sep 2011
I have drawn the rays through the lens, it is working fine. It is also undergoing refraction. Now, after the rays come out of the surface 2 of the lens, they go to infinity. So I need to draw the rays from the surface 2 upto infinity, or my rays should appear something like it is going to infinity after refraction at surface 2. How could I do this in matlab? Looking forward to hearing from you soon.
BSD
bsd
bsd on 23 Sep 2011
You have drawn the lens in matlab in 3D, how is it done? I used the lens equation y=sqrt((n^2-1)*((x-f)^2))+((2)*(f)*(n-1)*(x-f)));
to draw a hyperbolic lens. where n is the refractive index of the lens, f is the focal length of the lens. The above equation was taken from "Antenna handbook, volume II, antenna theory, chapter 16, by Y.T. Lo and S.W. Lee", Please reply....

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!