0% found this document useful (0 votes)
119 views20 pages

Digital FIR Band-Pass Filter Design by Yankee Bush Software LLC - 2015

Digital FIR Band-pass Filter Design by Yankee Bush Software LLC - 2015

Uploaded by

Usman Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views20 pages

Digital FIR Band-Pass Filter Design by Yankee Bush Software LLC - 2015

Digital FIR Band-pass Filter Design by Yankee Bush Software LLC - 2015

Uploaded by

Usman Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Problem

Description
Matlab Source Code
References
Copyright © 2005-2015.

No part of this manual may be reproduced or transmitted in any form or by any means,

electronic or mechanical, including photocopying, recording, or by any information


storage or retrieval system, without prior permission from the publisher.
Notice of Liability

Every effort has been made to ensure that this manual contains accurate and current

information. However, Yankee Bush Software LLC and the author shall not be held liable
for any loss or damage suffered by readers as a result of any information contained herein.

This manual is for educational use only and not for commercial use.
Trademarks & Copyrights

All trademarks and copyrights are acknowledged as belonging to their respective owners.
Licensing Information

Source code and object code can be freely distributed to students by accredited colleges

and universities without requiring a license as long as there is no commercial application


involved. In other words, no license is required if you use this manual for educational use

only. You must obtain an Object Code Distribution license to embed code into a

commercial product. This is a license to put code into a product that is sold with the intent

to make a profit. There will be a license free for such situations. You must obtain a Source
Code Distribution License to distribute source code. Again there is a fee for such a license.

You can download shareware versions but you must obtain commercial licenses from the

manufacturers to use full versions of their software and/or hardware.


Problem Description
Matlab Source Code

% design of Bandpass FIR filter

clc;

clear all;

ws1=0.15;%normalized frequency

wp1=0.3;

wp2=0.6;

ws2=0.75;

As=60; % in db

Rp=1; % in db

tr_width = min((wp1-ws1),(ws2-wp2))

M = ceil(11*pi/tr_width) + 1

wc1 = (ws1+wp1)/2;

wc2 = (wp2+ws2)/2;

f = [0 0.15 0.3 0.6 0.75 1]; m = [0 0 1 1 0 0];

b = fir2(M,f,m);

figure(1)

freqz(b,1);

title('frequency response of band-pass filter design using hamming

window');

figure(2)
impz(b,1);

title('impulse response of band-pass filter design using hamming

window');
References

A. V. Oppenheim, R. W. Schafer with J. R. Buck, “Discrete-Time Signal Processing,”

Second Ed., Prentice Hall Signal Processing Series, 1999. Pages 1-870

J. G. Proakis and D. G. Manolakis, “Digital Signal Processing Principles, Algorithms, and

Applications,“ Third Ed., Prentice Hall, 1996. Pages 1-1016

S. K. Mitra, “ Digital Signal Processing – A Computer-Based Approach,“ Second Ed.,

McGraw Hill 2001 (comes with Digital Signal Processing Using MatlabR, Prentice Hall,

1999) Pages 1-354

R. A. Haddad and T. W. Parsons, “Digital Signal Processing – Theory, Applications, and

Hardware,“ Computer Science Press, 1991. Pages 1-636

Joyce Van de Vegte, “ Fundamentals of Digital Signal Processing,“ Prentice Hall 2002.

Pages 1-810

N. Dahnoun, “Digital Signal Processing Implementation using the TMS320C6000TM

DSP Platform,“ First Ed., Prentice Hall 2000. Pages 1-234

A. V. Oppenheim, R. W. Schafer, “Digital Signal Processing,“ First Edition, Prentice Hall,


1975. Pages 1-784

Hykin, “Adaptive Filter Theory”, Prentice Hall, Fourth Edition, 2001, Pages 1-936

http://www.mathworks.com/

You might also like