find all zeros

8 vues (au cours des 30 derniers jours)
Emily
Emily le 26 Avr 2012
f(x)=21x^3+x

Réponses (3)

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

Andrei Bobrov
Andrei Bobrov le 26 Avr 2012
roots([21 0 1 0])

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

Catégories

En savoir plus sur Multicore Processor Targets dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by