how i can use roots in matlab

1 view (last 30 days)
ays ays
ays ays on 2 Jul 2019
Commented: ays ays on 2 Jul 2019
i need help to use roots function in matlab i have this
7x^4+5x^3=-4x-5
and i need to do it with the roots anyone can helpe me ?
  3 Comments
Torsten
Torsten on 2 Jul 2019
Edited: Torsten on 2 Jul 2019
Hint:
7x^4 + 5x^3 = -4x - 5
<->
7x^4 + 5x^3 + 0x^2 + 4x + 5 = 0

Sign in to comment.

Accepted Answer

Stephan
Stephan on 2 Jul 2019
Edited: Stephan on 2 Jul 2019
RHS has to be zero, then put the coefficients in descending order into a vector - read here:
p = [7 5 0 4 5]
result = roots(p)

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!