Octave / Matlab: How to plot the roots of a polynomial

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-03-14T04:42:34Z Indexed on 2010/03/14 5:05 UTC
Read the original article Hit count: 998

Filed under:
|
|

Hi everyone,

Im trying to plot the roots of a polynomial, and i just cant get it.

First i create my polynomial

p5 = [1 0 0 0 0 -1] %x^5 - 1
r5 = roots(p5)
stem (p5)

Im using the stem function, but I would like to remove the stems, and just get the circle around the roots.

Is this possible, is stem the right command?

Thanks in advance,

PS: This is not homework, but very close, will tag it if requested.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about octave