<< Chapter < Page | Chapter >> Page > |
Combining these two transform pairs yields
Thus, when is real,
Observe that this filter has the following characteristics:
The following code allows hands-on exploration of this theoretical
result. The pulse shape is defined by the variable
ps
(the default is the sinc function
srrc(L,0,M)
for
L=10
).
The receive filter is analogously defined by
recfilt
.
As usual, the symbol alphabet is easily specified by the
pam
subroutine, and the system operates at an oversampling
rate
M
. The noise is specified in
n
,
and the ratio of the powers is output as
powv/poww
. Observe that, for any pulse shape, the
ratio of the powers is maximized when the receive filteris the same as the pulse shape (the
fliplr
command
carries out the time reversal). This holds no matterwhat the noise, no matter what the symbol alphabet,
and no matter what the pulse shape.
N=2^15; m=pam(N,2,1); % 2-PAM signal of length N
M=10; mup=zeros(1,N*M); mup(1:M:N*M)=m; % oversample by ML=10; ps=srrc(L,0,M); % define pulse shape
ps=ps/sqrt(sum(ps.^2)); % and normalizen=0.5*randn(size(mup)); % noise
g=filter(ps,1,mup); % convolve ps with datarecfilt=srrc(L,0,M); % receive filter H sub R
recfilt=recfilt/sqrt(sum(recfilt.^2)); % normalize the pulse shapev=filter(fliplr(recfilt),1,g); % matched filter with data
w=filter(fliplr(recfilt),1,n); % matched filter with noisevdownsamp=v(1:M:N*M); % downsample to symbol rate
wdownsamp=w(1:M:N*M); % downsample to symbol ratepowv=pow(vdownsamp); % power in downsampled v
poww=pow(wdownsamp); % power in downsampled wpowv/poww % ratio
matchfilt.m
test of SNR maximization
(download file)
In general, when the noise power spectral density is flat (i.e., ), the output of the matched filter may be realized by correlating the input to the matched filterwith the pulse shape . To see this, recall that the output is described bythe convolution
Notification Switch
Would you like to follow the 'Software receiver design' conversation and receive update notifications?