I'm trying to use 5 FIR in a row to improve the S/N ratio on my signal, but I have some difficulties doing it.

In fact I have 2 signals, let's call them sig_I and sig_Q. I want to apply my 5 filter to them, and after that get the value PdB = 10*log( sqrt( sig_I² + sig_Q²) )

In order to do that the coefficients of the 4 first filters are given to me, and I have to be able to change the BW of the fifth one. It can be either 11 MHz or 60 MHz, but always with 32 coefficients.

At the end of this, I have an amplitude value, but my professor keeps telling me the amplitude is false, and that I should have about 7dB difference between the 2 cases (10*log(60/11) = 7.3 dB), but I can't find that.

A code example for that would be (on matlab) :

%Filter coefficients
b1 = [1 3 3 1]/8;
b2 = [1 3 3 1]/8;
b3 = [ 1 4 6 4 1]/16;
b4 = [ 1 5 10 10 5 1 ]/32;

fe = 2.4e9
bwFir = 5.5e6; % Can be 5.5e6 or 30e6
Wn = 2*bwFir/fe;
b5= fir1(32,Wn);

%convoluate signals with FIR
sig_I = conv(sig_I,b1);
sig_I = conv(sig_I,b2);
sig_I = conv(sig_I,b3);
sig_I = conv(sig_I,b4);
sig_I = conv(sig_I,b5);

sig_Q = conv(sig_Q,b1);
sig_Q = conv(sig_Q,b2);
sig_Q = conv(sig_Q,b3);
sig_Q = conv(sig_Q,b4);
sig_Q = conv(sig_Q,b5);

mod = 10.*log10(sqrt(I.*I + Q.*Q));


But for me the value of "mod" is kinda the same with 11 or 60 MHz. Am I doing something wrong?


Look at the power spectral density of the signal prior to application of filter b5.

If you filtered white noise with two filters, one with a bandwidth of 11 MHz and the other with a bandwidth of 60 MHz, and both with the same passband gain, then indeed the difference between the power of the two output signals should be about 10*log10(60/11) or 7.3 dB. But if, for example, your signal was already bandlimited to the 11 MHz bandwidth of filter 1, then there would be little difference between the output powers of the two filters. A signal with a more complicated spectra (e.g., signal is within 11 MHz, but broadband noise exists) will be somewhere in between.

Also, if you are trying to compute the power of the signal in dB, you would not have a sqrt in your 10.*log10(sqrt(I.*I + Q.*Q)) equation.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.