How do you add a sampling interval to a low pass filter?

1 view (last 30 days)
Brianna Miranda
Brianna Miranda on 13 Dec 2021
Commented: Mathieu NOE on 14 Dec 2021
How do I add a sampling interval of .1s to a low pass filter if I am using the fdesign.lowpass feature? This is what I have so far.
Fc = .99; % cutoff frequency (*pi radians)
N = 63; % filter order
Hn = fdesign.lowpass('N,Fc',N,Fc);
Hd1 = design(Hn,'window','window',@hamming,'systemobject',true);
Hd2 = design(Hn,'window','window',{@chebwin,50},'systemobject',true);
hfvt = fvtool(Hd1,Hd2,'Color','White');
legend(hfvt,'Hamming window design','Dolph-Chebyshev window design')
  1 Comment
Mathieu NOE
Mathieu NOE on 14 Dec 2021
you simply have to design a pure delay filter (with is a FIR fiter : F(z^-1) = z^(-nd))
nd depends of your sampling rate and time delay (here 0.1s)
for example is Fs = 1000 Hz (dt = 1/1000 s) you would need nd = 100 samples of delay

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!