summaryrefslogtreecommitdiff
path: root/851/CH3/EX3.3/Example3_3.sce
blob: a22f5004419cf841575359407d0d991fe5867f5e (plain)
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
//clear//
//Caption:Matched Filter output for RF pulse
//Example3.3: MATCHED FILTER FOR RF PULSE
clear;
close;
clc;
fc =4; //carrier frequency in Hz
T =1;
t1 = 0:0.01:T;
phit = sqrt(2/T)*cos(2*%pi*fc*t1);
hopt = phit;
phiot = convol(phit,hopt);
phiot = phiot/max(phiot);
t2 = 0:0.01:2*T;
subplot(2,1,1)
a =gca();
a.x_location = "origin";
a.y_location = "origin";
a.data_bounds = [0,-1;1,1];
plot2d(t1,phit);
xlabel('                                                          t')
ylabel('                                                     phi(t)')
title('Figure 3.13 (a) RF pulse input')
subplot(2,1,2)
a =gca();
a.x_location = "origin";
a.y_location = "origin";
a.data_bounds = [0,-1;1,1];
plot2d(t2,phiot);
xlabel('                                                          t')
ylabel('                                                    phi0(t)')
title('Figure 3.13 (b) Matched Filter output')