<< Chapter < Page Chapter >> Page >

For the FFT method, the two vectors (input and convolution) must both have length N+M-1 . The raw output has complex values due to numerical roundoff, andthe command real is used to strip away the imaginary parts. Thus, the FFT based method requires more M atlab commands to implement. Observe also that conv(h,x) and conv(x,h) are the same, whereas filter(h,1,x) is not the same as filter(x,1,h) .

To view the frequency response of the filter h , M atlab provides the command freqz , which automatically zero pads By default, the M atlab command freqz creates a length 512 vector containing the specified impulse response followed by zeros. The FFT of this elongated vector is used forthe magnitude and phase plots, giving the plots a smoother appearance than when taking the FFT of the raw impulse response. the impulse response and then plots both the magnitude and the phase. Type     freqz(h) to see that the filter with impulse response h=[1, 1, 1, 1, 1] is a (poor) lowpass filter with two dips at 0.4 and 0.8 of the Nyquist frequency as shown in [link] . The command freqz always normalizes the frequency axis so that “1.0” corresponds to the Nyquist frequency f s / 2 . The passband of this filter(all frequencies less than the point where the magnitude drops 3 dB below the maximum) ends just below 0 . 2 . The maximum magnitude in the stopband occurs at about 0 . 6 , where it is about 12 dB down from the peak at zero.Better (i.e., closer to the ideal) lowpass filters would attenuate more in the stopband,would be flatter across the passband, and would have narrower transition bands.

The frequency response of the filter with impulse response h=[1, 1, 1, 1, 1]  has a poor lowpass character. It is easier to see this in the frequency domain than directly in the time domain.
The frequency response of the filter with impulse response h=[1, 1, 1, 1, 1]has a poor lowpass character. It is easier to see this in the frequencydomain than directly in the time domain.

Implementing iir filters

At first glance it might seem counterintuitive that a useful filter could have an impulse response that isinfinitely long. To see how this infiniteness might arise in a specific case,suppose that the output y [ k ] of a LTI system is created from the input x [ k ] according to the formula

y [ k + 1 ] = a y [ k ] + b x [ k ] ,

where a and b are constants. This is shown in the top part of [link] , where the time delay between successive terms(between k and k + 1 for instance) is represented by z - 1 . This is an example of the Z -transform. If the initial value is y [ 0 ] = 0 , the response of the system [link] to an impulse x [ k ] = δ [ k ] (where δ [ k ] is the discrete impulse function [link] ) is

b , b a , b a 2 , b a 3 , b a 4 , . . . .

If | a | > 1 , this impulse response increases towards infinity and the system is said to be unstable. If | a | < 1 , the values in the sequence die away towards (but never quite reaching) zero,and the system is stable. In both cases, the impulse response is infinitely long and so the system [link] is IIR. The special case when a = 1 is called a summer (or, in analogy with continuous time, an integrator ) because y [ k ] = y [ 0 ] + b i = 0 k - 1 x [ i ] sums up all the inputs. The summer is oftenrepresented symbolically as in the lower part of [link] .

The LTI system y[k+1]=ay[k]+bx[k], with input x[k]and output y[k] is represented schematically using the delay z^-1 in this simple block diagram. The special case when a=1 is called a summer because it effectively adds up all the input values, and it often drawn more concisely as in the lower half of the figure.
The LTI system y [ k + 1 ] = a y [ k ] + b x [ k ] , with input x [ k ] and output y [ k ] is represented schematically using the delay z - 1 in this simple block diagram. The special case when a = 1 is called a summer because it effectively adds up all the input values, and it oftendrawn more concisely as in the lower half of the figure.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Software receiver design. OpenStax CNX. Aug 13, 2013 Download for free at http://cnx.org/content/col11510/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software receiver design' conversation and receive update notifications?

Ask