Given the poles, zeros and gains are going to calculate the transfer function using Scilab in the following cases:
- Gain K = 10, poles: -1 +2j and -1-2j.
Program in Scilab
num=10;
den=poly([-1-2*%i -1+2*%i],'s');
g=syslin('c',num/den)
Solution:
g =
10
-----------
2
5 + 2s + s
- Gain 10. Zero in 0. Poles in -1+2j and -1-2j.
Program in Scilab
num=10*poly(0,'s');
den=poly([-1-2*%i -1+2*%i],'s');
g=syslin('c',num/den)
Solution:
g =
10s
-----------
2
5 + 2s + s
- Gain 12. Zero in -1. Poles in -2, -4 y -8.
Program in Scilab
num=12*poly(-1,'s');
den=poly([-2 -4 -8],'s');
g=syslin('c',num/den)
Solution:
g =
12 + 12s
------------------
2 3
64 + 56s + 14s + s
|