find all zeros

8 views (last 30 days)
Emily
Emily on 26 Apr 2012
f(x)=21x^3+x

Answers (3)

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

Andrei Bobrov
Andrei Bobrov on 26 Apr 2012
roots([21 0 1 0])

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

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!