blob: 240769153e1fe4109d37fc3944d368f283ab7da4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function optics = optics_placer( x ,f )
%Places optical elements within array optics for use in other functions
x1=x(1);
x2=x(2);
x3=x(3);
lns1.abcd=abcd_lens( f(1) ) ;
lns1.x= x1 ;
lns2.abcd=abcd_lens( f(2) ) ;
lns2.x= x2 ;
lns3.abcd=abcd_lens( f(3) ) ;
lns3.x= x3 ;
optics={lns1,lns2,lns3};
end
|