find all zeros

8 ビュー (過去 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 Center および File ExchangeMulticore Processor Targets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by