Zeros/Poles of Transfer Function on Matlab

Thread Starter

tquiva

Joined Oct 19, 2010
176
I have a transfer function



and am trying to find the effect of the parameters R and C on the transfer function of the circuit.

I'm trying to use Matlab and have the following script:

Rich (BB code):
% Function H(s) 
syms C R;
num1 = [2       0               0;];
den1 = [1       1/(R*C)         1/(C^2);];
[z,p,k] = tf2zp(num1, den1)
I'm not sure if I'm using the correct code, but could someone please assist me with this problem?
 

Attachments

Georacer

Joined Nov 25, 2009
5,182
The problem is that lti system functions don't accept symbolic objects as arguments. You have to construct the function manually:
Rich (BB code):
syms s R C;
TF =(2*s^2)/(1/C^2 + s^2 + s/(C*R))
and then investigate the effect of R and C:
Rich (BB code):
C_contribution=diff(TF,C);
R_contribuition=diff(TF,R);
 
Top