how to get the polinomial from partial fractions scilab

628 views Asked by At

I am working with the next quotient of polynomials in the scilab software

G(s)=B(s)/A(s)=2s^3+5s^2+3s+6/s^3+6s^2+11s+6

for this I write the next code Scilab code:

s=%s;  
num=2*s^3+5*s^2+3*s+6;  
den=s^3+6*s^2+11*s+6;  
g=syslin('c',num/den);  
g2=pfss(g);  

that yields

-6/s+3+3/s+1-4/s+2+2

But how can I go from the fractions to the transfer function in this software?

Thanks in advance.

1

There are 1 answers

3
user5694329 On BEST ANSWER
 h=0;for k=1:size(g2), h=h+g2(k);end