find all zeros

8 visualizzazioni (ultimi 30 giorni)
Emily
Emily il 26 Apr 2012
f(x)=21x^3+x

Risposte (3)

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

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

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

Categorie

Scopri di più su Multicore Processor Targets in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by