Polynomial Factoring with negative powers

6 views (last 30 days)
Juan
Juan on 4 Jun 2013
Hello Everybody. My first msg so glad to be here. I am just starting with Matlab so, maybe its a simple question but I didnt found the solution.
I have a polynomial like
D^1+D^-1+ 1
and I want it
(D^1-a1)(D^1-a2)
Sure matlab can do it, but how?
Thank you

Answers (1)

Matt J
Matt J on 4 Jun 2013
Rewrite as a rational function
(D^2+D+1)/D
Now use ROOTS to factor the numerator
>> roots([1,1,1])
ans =
-0.5000 + 0.8660i
-0.5000 - 0.8660i

Categories

Find more on Polynomials in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!