rootsPolynomial Roots
roots(p)p is a vector containing the coefficents, where p(1) and p(end) correspond to the highest and zeroth order terms, respectively.p(1) is p(end) is p should have p should be non-empty and should not contain inf nor nan.roots([0.5 0.5 1 2 3 7 8])
ans =
1.138 + 1.345i
1.138 - 1.345i
-0.335 + 1.605i
-0.335 - 1.605i
-1.303 + 0.469i
-1.303 - 0.469i
roots([0 0 1+i 2 3+0.5i])
ans =
-0.223 + 1.852i
-0.777 - 0.852i