source: ETALON/Filters/Experiment results/Experiment2translationStage.m @ 713

Last change on this file since 713 was 713, checked in by hodnevuc, 7 years ago
File size: 2.7 KB
Line 
1clear all; close all; clc;
2
3F20=[91.2 96 99.2 100.8 99.2 96 92 89.6 88 90.4 88 89.6 90.4 93.6 98.4 104 105.6 104.8 100 96  92.8 92 92.8 92 92.8 93.6];
4F23=[100.8 104 105.6 104.8 104 100 97.6 96.8 94.4 92.8 91.2 95.2 100 105.6 108.8 111.2 111.2 108.8 104.8 103.2 100.8 97.6 95.2 96 99.2 103.2];
5F24=[96.8 100.8 104.8 105.6 105.6 104 101.6 99.2 96 95.2 96 96.8 98.4 102.4 108 111.2 112.8 112 110.4 105.6 100.8 99.2 98.4 98.4 100 102.4];
6F25=[107.2 111.2 114.4 117.6 116.8 115.2 110.4 107.2 102.4 100.8 103.2 105.6 108 112.8 117.6 122.4 124.8 124 121.6 116.8 110.4 107.2 106.4 106.4 109.6 111.2];
7F26=[104.8 108 110.4 109.6 108 104.8 103.2 102.4 100.8 100 99.2 100 104.8 111.2 115.2 117.6 118.4 114.4 111.2 110.4 109.6 108.0 104.8 103.2 106.4 110.4];
8F27=[107.2 113.6 116.8 116.0 113.6 110.4 106.4 101.6 98.4 96.8 97.6 100 104.8 112 117.6 122.4 122.4 120 114.4 108.8 104.8 103.2 102.4 103.2 104.8 108.8];
9F30=[104 110.4 113.6 115.2 113.6 111.2 106.2 101.6 97.6 94.4 96.0 100 105.6 111.2 117.6 120.8 120.8 119.2 115.2 109.6 104.8 102.4 101.6 102.4 104.0 109.6];
10F40=[109.6 117.6 120.0 116.8 112.8 106.8 99.2 95.2 91.2 88.8 91.2 97.6 106.4 116 124.2 124.8 121.6 117.6 110.4 104 98.4 95.2 95.2 98.4 104.8 112.0];
11F50=[99.2 107.2 109.6 106.4 100.8 92.0 84.0 80.8 78.4 77.6 78.4 86.4 96.0 107.2 112.8 115.2 110.4 104.0 96.0 88.8 84.0 84.0 84.8 88.8 96.0 103.2];
12Block=[23 17.8 17 21.4 26.6 34.6 42.0 46.8 46 44.8 41.2 35.6 28.8 20 15.4 16.0 20.6 27.2 35.6 43.8 46.8 46 42.8 37.2 28.4 20];
13Frame=[122.4 121.3 126.4 132.0 136 136.8 135.2 132.8 127.2 123.2 121.6 124.0 126.4 125.6 127.2 133.6 140.8 143.2 141.6 140.0 136.0 131.2 125.6 122.4 123.2 124];
14
15F=[F20; F23; F24; F25; F26; F27; F30; F40; F50];
16F=F-repmat(Block,[9 1]);
17Frame=Frame-Block;
18F=F./repmat(Frame,[9 1]);
19% F=F./repmat(F(4,:),[9 1]);
20nu_f=[20 23 24 25 26 27 30 40 50]
21Len=(0:25)*1/2;
22figure
23[hc hc]=contourf(Len, nu_f,F)
24set(hc,'edgecolor','none')
25colorbar
26set(gca,'fontsize',16)
27ylabel('Frequency, [GHz]')
28xlabel('Frame position, [mm]')
29title('Transmissivity, 24GHz')
30
31
32figure
33hold on
34cm=colormap(jet(8));
35for ii=1:8
36plot(nu_f,F(:,ii+1),'-^','color',cm(9-ii,:),'linew',2)
37end
38grid on
39set(gca,'fontsize',16)
40xlabel('Frequency, [GHz]')
41ylabel('Transmissivity, [1]')
42 legend('0.5 mm','1 mm','1.5 mm','2 mm','2.5 mm','3 mm','3.5 mm','4 mm','Location','northeast')
43title('24GHz source')
44xlim([19 66])
45
46
47Fi=pchip(1:26,F,1:0.1:26);
48for k=1:9
49for c=-50:50
50   R(c+51)=corr(Fi(k,1:(126-c+1))',Fi(k,(126+c-1):251)');
51end
52    [~,Rk(k)]=max(R);
53end
54% plot(nu_f,(Rk-50+126)/10)
55% hold on
56% plot(nu_f,ones(size(nu_f))*299/24)
57% ylim([12 13.5])
58299.792/mean((Rk-50+126)/10)% GHz
59299.792/mean((Rk-50+126)/10)^2*std((Rk-50+126)/10)% Error GHz
60
61% figure
62% errorbar(nu_f,mean(F,2),std(F'))
63% xlim([19 51])
Note: See TracBrowser for help on using the repository browser.