Finding roots of the polynomial.

4 views (last 30 days)
Mike Hawk
Mike Hawk on 9 May 2019
Answered: Jothi on 13 Aug 2022
using roots command.

Answers (1)

Jothi
Jothi on 13 Aug 2022
p=[3 -2 -4]
p =
3 -2 -4
>> r = roots(p)
r =
1.5352
-0.8685
>> p = [1 0 0 0 -1]
p =
1 0 0 0 -1
>> r = roots(p)
r =
-1.0000 + 0.0000i
0.0000 + 1.0000i
0.0000 - 1.0000i
1.0000 + 0.0000i

Categories

Find more on Polynomials in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!