Positive roots only for cubic eqn

How I get positive roots x^3 − 5x^2 − 2x + 24 = 0 Using syms x eqn=x^3 − 5x^2 − 2x + 24 ==0

 Accepted Answer

madhan ravi
madhan ravi on 23 Jun 2020
Edited: madhan ravi on 23 Jun 2020
ROOTS = roots([1, -5, -2, 24]);
Wanted = ROOTS(ROOTS > 0)

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 23 Jun 2020

Edited:

on 23 Jun 2020

Community Treasure Hunt

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

Start Hunting!