<< Chapter < Page Chapter >> Page >

Filters are also classified by the length of their impulse response. If the output of a filter depends only ona specified number of samples, the filter is said to have a finite impulse response, abbreviated FIR. Otheriwse,it is said to have an infinite impulse response, abbreviated IIR.The bulk of the filters in Software Receiver Design are FIR filters with a flat passband, because these are the most commonfilters in a typical receiver. But other filter profiles are possible, and the techniques offilter design are not restricted to flat passbands. "Implementing FIR Filters" shows several ways that digital FIR filters can be implemented in M atlab . IIR filters arise whenever there is a loop(such as in a phase locked loop), and one special case (the integrator) is an intrinsic piece of theadaptive elements. "Implementing IIR Filters" shows how to implement IIR filters. "Filter Design" shows how to design filters with specific properties,and how they behave on a number of test signals.

Implementing fir filters

Suppose that the impulse response of a discrete-time filter is h [ i ] , i = 0 , 1 , 2 , ... , N - 1 . If the input to the filter is the sequence x [ i ] , i = 0 , 1 , ... , M - 1 , then the output is given by the convolution [link] . There are four ways to implement this filtering in M atlab :

  • conv directly implements the convolution equation and outputs a vector of length N + M - 1 .
  • filter implements the convolution so as to supply one output value for each input value; the output is of length M .
  • In the frequency domain, take the FFT of the input, the FFT of the output, multiply the two, and take the IFFTto return to the time domain.
  • In the time domain, pass through the input data, at each time multiplying by the impulse response and summing the result.

Probably the easiest way to see the differences is to play with the four methods.

h=[1 -1 2 -2 3 -3];                      % impulse response h[k]x=[1 2 3 4 5 6 -5 -4 -3 -2 -1];          % input data x[k]yconv=conv(h,x)                          % convolve x[k]*h[k]yfilt=filter(h,1,x)                      % filter x[k] with h[k]n=length(h)+length(x)-1;                 % pad length for FFT ffth=fft([h zeros(1,n-length(h))]);      % FFT of impulse response = H[n] fftx=fft([x, zeros(1,n-length(x))]);     % FFT of input = X[n] ffty=ffth.*fftx;                         % product of H[n] and X[n] yfreq=real(ifft(ffty))                   % IFFT of product gives y[k]z=[zeros(1,length(h)-1),x];              % initial state in filter = 0for k=1:length(x)                        % time domain method   ytim(k)=fliplr(h)*z(k:k+length(h)-1)';  % iterates once for each x[k]end                                      % to directly calculate y[k]
waystofilt.m “conv” vs. “filter” vs. “freq domain” vs. “time domain” (download file)

Observe that the first M terms of yconv , yfilt , yfreq , and ytim are the same, but that both yconv and yfreq have N-1 extra values at the end. For both the time domain method and the filter command, the output values are aligned in time with the input values,one output for each input. Effectively, the filter command is a single line implementation of the time domain for loop.

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

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