using roots with vectorization of a polynomial vs. the function it’s self
Show older comments
x=-100:100
y=5*x.^5+4*x.^4+3*x.^3+2*x.^2+x
r = roots(y)
y1 = [5 4 3 2 1]
r1 = roots(y1)
why do you recieve more roots in the output when you run the roots with a function versus running it with a vectorized version of the coefficients of the function?
Accepted Answer
More Answers (0)
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!