patan.gova
Full Member level 3
- Joined
- Dec 19, 2011
- Messages
- 172
- Helped
- 4
- Reputation
- 8
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,776
Hello,
I already used an FIR lowpass fitler as shown below with a fc=4Hz and sampling freq=100Hz for the data attached
But, I now I want to design the IIR fitler for the same to check the difference between the both implementation with the microcontroller.
can someone help with the better lowpass IIR filter design in matlab for the input pulse signal (data attached) if the needed fc=4Hz and sampling freq=100Hz.
View attachment pulse_data5000.txt
Thanks.
I already used an FIR lowpass fitler as shown below with a fc=4Hz and sampling freq=100Hz for the data attached
Code:
Hf = fdesign.lowpass('N,Fc',31,4,100);
Hd =design (Hf);
Coeff= Hd.Numerator;
data3= filtfilt(Hd.Numerator,1,a);
But, I now I want to design the IIR fitler for the same to check the difference between the both implementation with the microcontroller.
can someone help with the better lowpass IIR filter design in matlab for the input pulse signal (data attached) if the needed fc=4Hz and sampling freq=100Hz.
View attachment pulse_data5000.txt
Thanks.