- #1
bumclouds
- 25
- 0
Homework Statement
Our job is to recreate the system in the above diagram in Matlab. I've been able to do all the stages effectively except the "matched filtering" part.
Homework Equations
The Attempt at a Solution
I don't really understand matched filtering very well. I don't know if I have a stream of 1000 bits of data, if each bit goes once at a time through the matched filter, or all 1000 bits get filtered at once. Here's what I tried to do:
"Sig" is the variable which contains 1000 bits of binary data mixed with white noise, with a signal to noise ratio of 1dB. "s" is the variable which contained the binary data before noise was added.
Below is my attempt at a matched filter, to try to maximize the signal to noise ratio.
Code:
%matched filtering loop 1
for count = 1:1000
if s(count) == 1
H = 1;
else
H = 0;
end
Sig(count) = filter(Sig(count),1,H);
end
Am I doing it completely wrong?
Thanks!
-Andrew