<< Chapter < Page Chapter >> Page >
This module explains the MATLAB commands for FIR filter design.

Fir filter design using matlab

Design by windowing

The MATLAB function fir1() designs conventional lowpass, highpass, bandpass, and bandstoplinear-phase FIR filters based on the windowing method. The command

b = fir1(N,Wn)

returns in vector b the impulse response of a lowpass filter of order N . The cut-off frequency Wn must be between 0 and 1 with 1 corresponding to the half sampling rate.

The command

b = fir1(N,Wn,'high')

returns the impulse response of a highpass filter of order N with normalized cutoff frequency Wn .

Similarly, b = fir1(N,Wn,'stop') with Wn a two-element vector designating the stopband designs a bandstop filter.

Without explicit specification, the Hamming window is employed in the design. Other windowing functions can be used by specifying thewindowing function as an extra argument of the function. For example, Blackman window can be used instead by thecommand b = fir1(N, Wn, blackman(N)) .

Parks-mcclellan fir filter design

The MATLAB command

b = remez(N,F,A)

returns the impulse response of the length N+1 linear phase FIR filter of order N designed by Parks-McClellan algorithm. F is a vector of frequencyband edges in ascending order between 0 and 1 with 1 corresponding to the half sampling rate. A is a realvector of the same size as F which specifies the desired amplitude of the frequency response of the points (F(k),A(k)) and (F(k+1),A(k+1)) for odd k . For odd k , the bands between F(k+1) and F(k+2) is considered as transition bands.

Questions & Answers

how to study physic and understand
Ewa Reply
what is conservative force with examples
Moses
what is work
Fredrick Reply
the transfer of energy by a force that causes an object to be displaced; the product of the component of the force in the direction of the displacement and the magnitude of the displacement
AI-Robot
why is it from light to gravity
Esther Reply
difference between model and theory
Esther
Is the ship moving at a constant velocity?
Kamogelo Reply
The full note of modern physics
aluet Reply
introduction to applications of nuclear physics
aluet Reply
the explanation is not in full details
Moses Reply
I need more explanation or all about kinematics
Moses
yes
zephaniah
I need more explanation or all about nuclear physics
aluet
Show that the equal masses particles emarge from collision at right angle by making explicit used of fact that momentum is a vector quantity
Muhammad Reply
yh
Isaac
A wave is described by the function D(x,t)=(1.6cm) sin[(1.2cm^-1(x+6.8cm/st] what are:a.Amplitude b. wavelength c. wave number d. frequency e. period f. velocity of speed.
Majok Reply
what is frontier of physics
Somto Reply
A body is projected upward at an angle 45° 18minutes with the horizontal with an initial speed of 40km per second. In hoe many seconds will the body reach the ground then how far from the point of projection will it strike. At what angle will the horizontal will strike
Gufraan Reply
Suppose hydrogen and oxygen are diffusing through air. A small amount of each is released simultaneously. How much time passes before the hydrogen is 1.00 s ahead of the oxygen? Such differences in arrival times are used as an analytical tool in gas chromatography.
Ezekiel Reply
please explain
Samuel
what's the definition of physics
Mobolaji Reply
what is physics
Nangun Reply
the science concerned with describing the interactions of energy, matter, space, and time; it is especially interested in what fundamental mechanisms underlie every phenomenon
AI-Robot
what is isotopes
Nangun Reply
nuclei having the same Z and different N s
AI-Robot
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, Fundamentals of signal processing. OpenStax CNX. Nov 26, 2012 Download for free at http://cnx.org/content/col10360/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fundamentals of signal processing' conversation and receive update notifications?

Ask