Line | |
---|
1 | close all; clear all; clc; |
---|
2 | load percent.mat |
---|
3 | |
---|
4 | load('GFW/SEY.mat') |
---|
5 | FF=Spectrum(3:11)./Integral(3:11)*1e-24; |
---|
6 | eFF=Err(3:11)./Integral(3:11)*1e-24; |
---|
7 | |
---|
8 | Freq=300./(6*(1-cos((62:7:118)/180*pi))); |
---|
9 | % figure |
---|
10 | % hold on |
---|
11 | % errorbar(Freq, FF/9,eFF/9) |
---|
12 | |
---|
13 | |
---|
14 | figure |
---|
15 | |
---|
16 | cd('./KK') |
---|
17 | for c=1:100 |
---|
18 | |
---|
19 | FF2=6*eFF.*rand(size(eFF))+FF-3*eFF; |
---|
20 | [RSP,ISP]=SRf(flip(Freq),flip(FF2)/9); |
---|
21 | PhaseH=-(imag(hilbert(log(abs(RSP))))); |
---|
22 | RPH=real((ifft(RSP.*exp(1i.*(PhaseH))))); |
---|
23 | [mx,ps]=max(RPH); |
---|
24 | |
---|
25 | RPH= [zeros(1,150-ps), RPH(1:end-(150-ps))]; |
---|
26 | |
---|
27 | |
---|
28 | % plot(RSP,'-r') |
---|
29 | hold on |
---|
30 | plot((1:length(RPH))*1e-9/length(RPH)*1e+12,RPH,'Color',[0.8 0.8 0.8]) |
---|
31 | RP(c,:)=RPH(:); |
---|
32 | FWHM(c)=sum(RPH>max(RPH)/2)*1e-9/length(RPH) |
---|
33 | |
---|
34 | end |
---|
35 | plot((1:length(RPH))*1e-9/length(RPH)*1e+12,mean(RP),'k','linew',2) |
---|
36 | set(gca,'fontsize',16) |
---|
37 | xlabel('Time, [ps]') |
---|
38 | title('Reconstructed profile') |
---|
39 | ylabel('Amplitude, [a.u.]') |
---|
40 | xlim([0, 50]) |
---|
41 | grid on |
---|
42 | |
---|
43 | cd('..') |
---|
44 | mean(FWHM) |
---|
45 | std(FWHM) |
---|
Note: See
TracBrowser
for help on using the repository browser.