Line | |
---|
1 | clear all; close all |
---|
2 | phi=-10:0.1:10;%azimutal angle deg |
---|
3 | dthet=-10:0.1:10;%polar angle deg, (shift from optic axis of the mirror) |
---|
4 | |
---|
5 | for Thet=48:7:125 |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | for c=1:length(dthet) |
---|
10 | Lamb=6*(1-cos((Thet+dthet(c))/180*pi)); |
---|
11 | R=Lamb/2;%focal spot (Abbe diffraction limit) |
---|
12 | r=1;%detector radius |
---|
13 | d=50.8*sqrt(tan(phi/180*pi).^2+tan(dthet(c)/180*pi).^2); |
---|
14 | A=@(x,y)x^2*acos(y./x)-y.*sqrt(x^2-y.^2); |
---|
15 | d1=(d.^2-r^2+R^2)./(2*d); |
---|
16 | d2=d-d1; |
---|
17 | Cs=A(R,d1)+A(r,d2);%sum of two lengthes |
---|
18 | |
---|
19 | Map(c,:)=real(Cs); |
---|
20 | end |
---|
21 | figure |
---|
22 | contourf(dthet,phi,Map') |
---|
23 | xlabel('\Theta') |
---|
24 | ylabel('\phi') |
---|
25 | title(num2str(Thet)) |
---|
26 | save(['map' num2str(Thet) '.mat'],'Map') |
---|
27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.