find all zeros

10 次查看(过去 30 天)
Emily
Emily 2012-4-26
f(x)=21x^3+x

回答(3 个)

Honglei Chen
Honglei Chen 2012-4-26
You can use roots, for example for x^2-1=0
roots([1 0 -1])

Andrei Bobrov
Andrei Bobrov 2012-4-26
roots([21 0 1 0])

Walter Roberson
Walter Roberson 2012-4-26
(But Please note the code error I point out in my response.)

类别

Help CenterFile Exchange 中查找有关 Multicore Processor Targets 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by