Forum Discussion
Altera_Forum
Honored Contributor
17 years agofir filter design - newbie
dear sirs, as i am second year engineering student, i want to design an fir filter for y filter and cbcr filter , i dont know how to do it, my instructor only gave me a pdf , design in matlab o...
Altera_Forum
Honored Contributor
17 years agoHi again,
Your frequency is prescribed in terms of attenuation, however Matlab and most filter designers use gain values so you must convert the attenuation values to gain values by negating each value e.g 0dB,10dB,50dB becomes 0dB,-10,-50dB gain then enter them in Matlab. You should also use an "adequate" number of taps. You may also see help about (fir2) or (remez) or (firls) and use these functions instead of fdtool as you can control each frequency point. hope this helps