Designing a lowpass filter in matlab

1 次查看(过去 30 天)
Hello,
I want to implement the analog LP filter having a cutoff frequency of 2.4Hz and gain of 101 as shown http://img42.imageshack.us/img42/4320/qe74.jpg in the matlab. How to implement this LPfilter having a cutoff frequency and gain in matlab. Can help me out with this.

采纳的回答

Youssef  Khmou
Youssef Khmou 2013-12-2
there is a filter design functions , you can start with the simplest function as follows :
% given you sampling frequency, lets say 20
fs=20;
fc=2/10;
b=fir(N,fc);
freqz(b);
  6 个评论
Stefan
Stefan 2013-12-18
Hi Youssef KHMOU,
Can I know what is 'N' here and why you are using fc=2/(fs/2); is it mandatory to use this or can we directly use the required fc in the b=fir1(N,3) if fc=3Hz. How to design FIR lowpass filter having a cutoff frequency of 2.8Hz and with a sample rate of 300Hz .
Youssef  Khmou
Youssef Khmou 2013-12-18
N is the number of coefficients in the filter. The build in function fir1 requires the cut off frequency to be 0<fc<1, that is why you compute the new cut frequency as a function of Fs : Fc2=fc/(0.5*Fs).

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by