source: ETALON/CLIO/2017_CLIO_report/scripts/Grating_correction.m @ 728

Last change on this file since 728 was 728, checked in by hodnevuc, 7 years ago
File size: 422 bytes
Line 
1clear all; close all;clc
2alpha=45/180*pi;
3L=180;
4D=25;
5XposA=-25:1:25;
6alphaA=(-42:7:35)/180*pi;
7for c=1:51
8    for k=1:12
9    Xpos=XposA(c);
10    alpha=alphaA(k);
11x=(-L/2+Xpos*tan(alpha)):(L/1000):(L/2+Xpos*tan(alpha));
12Norm(c,k)=sum(real(8*sqrt((D/2)^2-x.^2*cos(alpha)^2))/(pi*D^2)*(x(2)-x(1)));
13    end
14end
15surf(XposA',alphaA'./pi*180+90,Norm')
16ylim([40 140])
17xlabel('Xpos, [mm]')
18ylabel('Angle, [deg]')
Note: See TracBrowser for help on using the repository browser.