Excuse me,can I use ifft to find discrete impuluse response(like sinc finction)?
We know s=jw=j2*pi*f,so Transfer function(model as high pass filter
) :H(i)= R2/(R1/(sR1C+1)+R2) = R2/(R1/(1+(2*pi*f*C*R1*j)+R2))
Fs=100MHz
Scale:-Fs/2:Fs/100:Fs/2, sample(divide) frequency response to 100 points, so each step size is "Fs/100".
And then put this 100 points value to matlab matrix for doing ifft.
This is my code,I don't know how to next and I think its not the correct answer….
Thank you for your patience.
clear;clc;close all;Fs = 100e6;R1 = 2500;R2 = 50;C = 30*1e-12;H = [];for i = 1:100 f = -Fs/2+(Fs/100)*i; %f=-Fs/2:Fs/128:Fs/2
x(i) = f; H(i) = R2/(R1/(1+(2*pi*f*C*R1*j)+R2)); endHabs=abs(H);plot(x,Habs);y=abs(ifft((H)));
Best Answer