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