Hello, i am trying to make a bode plot of the transfer function of a twin-t notch filter, that i am analyzing. I was able to produce the transfer function, and the bode plot by hand, but i am struggling to do it in Matlab, here is what i have so far:
r=320;
c=100*10^-9;
p=(1/(r.*c));
a=0.95;
f=(5000);
s= (1i*f);
h=((s^2 + p^2) ./ (s^2+4*p*s*(1-a)+p^2));
mh=abs(h);
ah=angle(h);
I am trying to plot the body function, and here is one i made for the transfer function H=2/(s+1):
% Numerator num = [2]; % Denominator den = [1 1];
% Transfer Function G = tf(num, den)
% Plot Frequency Response bode(G), grid
My question is, how would i represent the numerator and the denominator, since they are both powers of of s, which from my understanding the computer understands as s=jw, and thus i solved the transfer function as such. I have tried to understand how exactly the bode function takes it inputs, but i am not understanding that...
Any help would be great!!!
Thanks, Mike