how to make lenses in matlab?

61 次查看(过去 30 天)
bsd
bsd 2011-8-30
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 个)

Bjorn Gustavsson
Bjorn Gustavsson 2011-8-30
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 个评论
bsd
bsd 2011-9-13
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 2011-9-23
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....

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Optics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by