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 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