-
Notifications
You must be signed in to change notification settings - Fork 0
/
res_plot.m
48 lines (33 loc) · 4.11 KB
/
res_plot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% This script plot the resolution as function of losses for each value of
% noise, using data gotten frome the resoluion calculator.
the_losses=[0,1,2,3,4,5,6,7,8,9,10];
resol0noise=1e3*[0.0322050000000000,0.0323950000000000,0.0322250000000000,0.0320550000000000,0.0322500000000000,0.0321900000000000,0.0324000000000000,0.0323100000000000,0.0321650000000000,0.0322500000000000,0.0322250000000000];
ecart0noise=1e3*[0.000342552339450714,0.000633681806255274,0.000375394529304276,0.000320320563120593,0.000492576470151964,0.000344734833260519,0.000519108547618440,0.000503566229376456,0.000382890667368499,0.000522645094434877,0.000385083722954126];
resol0_1noise=1e3*[0.0346250000000000,0.0347250000000000,0.0345750000000000,0.0348450000000000,0.0349050000000000,0.0348550000000000,0.0350500000000000,0.0354300000000000,0.0352850000000000,0.0352050000000000,0.0354400000000000];
ecart0_1noise=1e3*[0.000682005556390393,0.000596370601838188,0.000751752338837311,0.000683239189064624,0.000687845606911441,0.000699228898595859,0.000671604520219264,0.000649777289781498,0.000543163249667605,0.000508325424154748,0.000780957576851716];
resol0_2noise=1e3*[0.0347650000000000,0.0350350000000000,0.0350550000000000,0.0353900000000000,0.0353700000000000,0.0353500000000000,0.0353050000000000,0.0355600000000000,0.0358200000000000,0.0356500000000000,0.0355150000000000];
ecart0_2noise=1e3*[0.000628511189868147,0.000869528002636155,0.000538492046561996,0.000723223776972901,0.000480241167485013,0.000647667881101515,0.000781008120451078,0.000799605165724078,0.00102268995147215,0.000932173464769864,0.00110657128102983];
resol1noise=1e3*[0.0353700000000000,0.0355050000000000,0.0355500000000000,0.0354150000000000,0.0355350000000000,0.0354350000000000,0.0356350000000000,0.0363300000000000,0.0359850000000000,0.0366950000000000,0.0393250000000000];
ecart1noise=1e3*[0.000873046691944819,0.000850680841877165,0.00103796359331753,0.000955469022329652,0.00103072534500812,0.00108641128201258,0.000979406372301745,0.00147151908620059,0.00204586231980037,0.00210550031558947,0.00378137749893788];
resol2noise=1e3*[0.0351500000000000,0.0357800000000000,0.0354100000000000,0.0351950000000000,0.0350850000000000,0.0361100000000000,0.0361050000000000,0.0375750000000000,0.0389400000000000,0.0419300000000000,0.0428250000000000];
ecart2noise=1e3*[0.00110952811211747,0.00113025381406591,0.00102284433141891,0.00117628988550308,0.00108834737101718,0.00143009017014202,0.00243385658877774,0.00222281826801734,0.00429766154284421,0.00487108547289108,0.00536743347469376];
resol3noise=1e3*[0.0355100000000000,0.0356400000000000,0.0350450000000000,0.0357850000000000,0.0353450000000000,0.0365250000000000,0.0369050000000000,0.0390900000000000,0.0396650000000000,0.0430450000000000,0.0527800000000000];
ecart3noise=1e3*[0.000667201539818999,0.000998103464734888,0.000890579350168961,0.00131720397653115,0.00155714820306732,0.00181973826920825,0.00238382156697138,0.00402687027485693,0.00629304336047688,0.00531952461271336,0.0190757934235209];
resol4noise=1e3*[0.0354950000000000,0.0356950000000000,0.0354700000000000,0.0358350000000000,0.0353700000000000,0.0364900000000000,0.0385950000000000,0.0388600000000000,0.0425000000000000,0.0526150000000000,0.0870850000000000];
ecart4noise=1e3*[0.00116007032454707,0.000783699056096354,0.00113048662088501,0.00160600026217472,0.00156712945758865,0.00277884868245826,0.00425595248786301,0.00382834305232901,0.00713309558547893,0.0134340602084482,0.0398243151723588];
figure
errorbar(the_losses,resol0noise,ecart0noise,'DisplayName','no noise')
hold on
errorbar(the_losses,resol0_1noise,ecart0_1noise,'DisplayName','0.1% noise')
hold on
errorbar(the_losses,resol0_2noise,ecart0_2noise,'DisplayName','0.2% noise')
hold on
errorbar(the_losses,resol1noise,ecart1noise,'DisplayName','1% noise')
hold on
errorbar(the_losses,resol2noise,ecart2noise,'DisplayName','2% noise')
hold on
errorbar(the_losses,resol3noise,ecart3noise,'DisplayName','3% noise')
hold on
errorbar(the_losses,resol4noise,ecart4noise,'DisplayName','4% noise')
ylim([30 90]); legend('show');
xlabel('Loss (dB/cm)'); ylabel('Resolution (pm)'); title('evolution of the resolution as function of loss and noise');