digital fir low-pass filter design by yankee bush software llc - 2015

20

Upload: oa

Post on 12-Sep-2015

20 views

Category:

Documents


6 download

DESCRIPTION

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

TRANSCRIPT

  • ProblemDescriptionMatlabSourceCodeSimulationsReferences

  • Copyright2005-2015.

    Nopartofthismanualmaybereproducedortransmittedinanyformorbyanymeans,

    electronicormechanical,includingphotocopying,recording,orbyanyinformation

    storageorretrievalsystem,withoutpriorpermissionfromthepublisher.

  • NoticeofLiability

    Everyefforthasbeenmadetoensurethatthismanualcontainsaccurateandcurrent

    information.However,YankeeBushSoftwareLLCandtheauthorshallnotbeheldliable

    foranylossordamagesufferedbyreadersasaresultofanyinformationcontainedherein.

    Thismanualisforeducationaluseonlyandnotforcommercialuse.

  • Trademarks&Copyrights

    Alltrademarksandcopyrightsareacknowledgedasbelongingtotheirrespectiveowners.

  • LicensingInformation

    Sourcecodeandobjectcodecanbefreelydistributedtostudentsbyaccreditedcolleges

    anduniversitieswithoutrequiringalicenseaslongasthereisnocommercialapplication

    involved.Inotherwords,nolicenseisrequiredifyouusethismanualforeducationaluse

    only.YoumustobtainanObjectCodeDistributionlicensetoembedcodeintoa

    commercialproduct.Thisisalicensetoputcodeintoaproductthatissoldwiththeintent

    tomakeaprofit.Therewillbealicensefreeforsuchsituations.YoumustobtainaSource

    CodeDistributionLicensetodistributesourcecode.Againthereisafeeforsuchalicense.

    Youcandownloadsharewareversionsbutyoumustobtaincommerciallicensesfromthe

    manufacturerstousefullversionsoftheirsoftwareand/orhardware.

  • ProblemDescription

  • MatlabSourceCode

    %designoflowpassFIRfilter

    clc;

    clearall;

    wp=0.22;%normalizefrequency

    ws=0.32;

    Rp=0.3;%indb

    As=52;%indb

    tr_width=ws-wp;

    M=ceil(6.6*pi/tr_width)+1;

    delta_w=2*pi/1000;

    Rp=-(min(db(1:1:wp/delta_w+1)));%PassbandRipple

    As=-round(max(db(ws/delta_w+1:1:501)));%MinStopbandattenuation

    %chosenhammingwindow

    f=[00.220.321];m=[1100];

    b=fir2(M,f,m);

    figure(1)

    freqz(b,1);

    title('frequencyresponseoflowpassfilterdesignusinghamming

    window');

    figure(2)

  • impz(b,1);

    title('impulseresponseoflowpassfilterdesignusinghamming

    window');

  • Simulations

  • References

    A.V.Oppenheim,R.W.SchaferwithJ.R.Buck,Discrete-TimeSignalProcessing,

    SecondEd.,PrenticeHallSignalProcessingSeries,1999.Pages1-870

    J.G.ProakisandD.G.Manolakis,DigitalSignalProcessingPrinciples,Algorithms,and

    Applications,ThirdEd.,PrenticeHall,1996.Pages1-1016

    S.K.Mitra,DigitalSignalProcessingAComputer-BasedApproach,SecondEd.,

    McGrawHill2001(comeswithDigitalSignalProcessingUsingMatlabR,PrenticeHall,

    1999)Pages1-354

    R.A.HaddadandT.W.Parsons,DigitalSignalProcessingTheory,Applications,and

    Hardware,ComputerSciencePress,1991.Pages1-636

    JoyceVandeVegte,FundamentalsofDigitalSignalProcessing,PrenticeHall2002.

    Pages1-810

    N.Dahnoun,DigitalSignalProcessingImplementationusingtheTMS320C6000TM

    DSPPlatform,FirstEd.,PrenticeHall2000.Pages1-234

    A.V.Oppenheim,R.W.Schafer,DigitalSignalProcessing,FirstEdition,PrenticeHall,

    1975.Pages1-784

    Hykin,AdaptiveFilterTheory,PrenticeHall,FourthEdition,2001,Pages1-936

    http://www.mathworks.com/