There are many ways for filter design, following different optimizationcriteria and optimization algorithms. Fir1 is probably one of them. The "help" should give you more information on the algorithm used. Matlab provides a number of other methods, as well. If you are (like me) not interested in the details in algorithm, but just want to find a satisfactory answer, I find sptool a good way to go. It lets you choose from a few methods, and play with the parameters. The graphic user interface shows you the results instantaneously. The result can be exported to the workspace. Feng -----Original Message----- From: CH R [mailto:] Sent: Friday, April 04, 2003 11:51 PM To: Subject: [matlab] FIlter Design Hi I am implementing FIR Filtrs in Matalb. I have basic doubts in this. Actually i know the cutoff frequencies and the Q factor for my filter design. I want to implement Lowpass, Bandpass and Higpass Filters(FIR). Can you pl somebody help me out in giving the suggetions. My approach is like this: I am finding filter Coefficients using 'fir1(taps, w)' Matlab, after that i am convolving my input samples with these filter coefficients. But in some implentations i found that we need to know stopband frequency, stopband ripples,pass band frequncy and passband ripples. but in the case of fir1 it is only asking no of taps and w=cutoff/sampling. I am expecting valuable suggetions from any one of you. Ramesh Yahoo! Groups Sponsor <http://us.ard.yahoo.com/M$9982.3083889.4452939.1728375/D=egroupweb/S05 083376:HM/A24963/R=0/*http://hits.411web.com/cgi-bin/autoredir?campU6&l lineid083889?=egroupweb&pos=HM _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/matlab More DSP-Related Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/> . |