source: ETALON/CLIO/Analysis/Data24May/Analyse2bis.m @ 719

Last change on this file since 719 was 719, checked in by hodnevuc, 7 years ago
File size: 2.1 KB
Line 
1clear all; close all; clc;
2load analyze.mat
3
4idet=7;
5figure
6hold on
7plot(amp(:,idet),amp(:,1),'*b','linewidth',2)
8plot(amp(:,idet),amp(:,2),'^g','linewidth',2)
9plot(amp(:,idet),amp(:,3),'*g','linewidth',2)
10plot(amp(:,idet),amp(:,4),'^b','linewidth',2)
11plot(amp(:,idet),amp(:,5),'ob','linewidth',2)
12 plot(amp(:,idet),amp(:,6),'^m','linewidth',2)
13 plot(amp(:,idet),amp(:,7),'-or','linewidth',2)
14 plot(amp(:,idet),amp(:,8),'*r','linewidth',2)
15 plot(amp(:,idet),amp(:,9),'*k','linewidth',2)
16 plot(amp(:,idet),amp(:,10),'ok','linewidth',2)
17xlim([0.0 0.055])
18ylim([0 0.15])
19set(gca,'fontsize',16)
20legend('48^o','55^o', '62^o','69^o','76^o', '83^o','90^o','97^o','104^o', '111^o')
21xlabel('Amplite 90^o, [a.u.]')
22ylabel('Amplitude, [a.u.]')
23title('Amplitude correlation')
24grid on
25
26cut=amp(:,idet)>0.025;
27for c=1:11
28fx=fit(amp(cut,idet),amp(cut,c),'poly1');
29f(c,:)=[fx.p1 fx.p2];
30tmp1=confint(fx);
31tmp2=(tmp1(1:2:3)-tmp1(2:2:4))/4;
32Er(c,:)=tmp2;
33end
34
35figure
36errorbar(48:7:118,f(:,1),Er(:,1),'-.ok','linewidth',2)
37set(gca,'fontsize',16)
38xlabel('Angle, [deg.]')
39ylabel('Amplitude, [a.u.]')
40title('Slope')
41grid on
42
43figure
44errorbar(48:7:118,f(:,2),Er(:,2),'-.or','linewidth',2)
45set(gca,'fontsize',16)
46xlabel('Angle, [deg.]')
47ylabel('Amplitude, [a.u.]')
48title('Base')
49grid on
50
51cut=amp(:,7)>0.025;
52
53for idet=1:11
54for c=1:11
55fx=fit(amp(cut,idet),amp(cut,c),'poly1');
56f2d(c,idet,:)=[fx.p1 fx.p2];
57Cx(c,idet)=corr(amp(cut,idet),amp(cut,c));
58tmp1=confint(fx);
59tmp2=(tmp1(1:2:3)-tmp1(2:2:4))/4;
60Er2d(c,idet,:)=tmp2;
61end
62end
63figure
64contourf(48:7:118,48:7:118,f2d(:,:,1)')
65set(gca,'fontsize',16)
66xlabel('Angle, [deg.]')
67ylabel('Angle ref., [deg.]')
68title('Slope')
69grid on
70colorbar
71figure
72contourf(48:7:118,48:7:118,f2d(:,:,2)')
73colorbar
74set(gca,'fontsize',16)
75xlabel('Angle, [deg.]')
76ylabel('Angle ref., [deg.]')
77title('Base')
78grid on
79colorbar
80
81% figure
82% contourf(48:7:118,48:7:118,Er2d(:,:,1)')
83% colorbar
84% figure
85% contourf(48:7:118,48:7:118,Er2d(:,:,2)')
86% colorbar
87figure
88contourf(48:7:118,48:7:118,Cx(:,:)')
89colorbar
90set(gca,'fontsize',16)
91xlabel('Angle, [deg.]')
92ylabel('Angle ref., [deg.]')
93title('Correlation')
94grid on
95colorbar
96
Note: See TracBrowser for help on using the repository browser.