using roots with vectorization of a polynomial vs. the function it’s self
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!