I have to do two frequency shifts:

  • the first: to transform a lowpass filter into a highpass filter

    I've implemented it in this way:

  • the second: to transform a lowpass filter into a bandpass filter centered at $\pi/2$.

    I've implemented it in this way:


I used the fvtool() command to show frequency responses, and I've observed that the frequency response of h_hpf is also replicated in the negative frequency axis, while it doesn't happen for the frequency response of h_bpf.

Indeed, the frequency response of h_bpf appears only in the positive frequency axis, and the replica in the negative axis doesn't appear.

Moreover, its impulse response h_hbf has complex values, so I think that the correct shift is:


Which is the correct shift?


1 Answer 1


You just shifted the low pass filter to the right, so you generated a complex-valued filter, as you've observed. Multiplying a real-valued impulse response with a complex exponential naturally results in a complex-valued impulse response. What you actually have to do is shift the spectrum to the right and to the left:


where $\omega_0$ is the desired center frequency. Eq. $(1)$ is equivalent to


from which it is obvious that the resulting band pass impulse response is real-valued.

The reason why it works with the high pass filter is that $e^{jn\pi}=\cos(n\pi)=(-1)^n$, so for this special case ($\omega_0=\pi$) it makes no difference.

  • $\begingroup$ It's the answer which I was searching for. Thank you for your clarity, and also for the explanation about why a single-side shifting works fine in the case where we multiplicate the lowpass impulse response for $e^{j\pi n}$. $\endgroup$
    – rainbow
    Nov 2, 2015 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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