MATLAB Answers

0

How to solve this two variable equation and save values?

Asked by RAFAEL LOPES on 26 Oct 2019
Latest activity Answered by darova
on 26 Oct 2019
Hello,
I have this two variable equation: X³+2X²+KX+2=0
Where 0K100.
All I need to do is to verify for which values of K, X0
I have tryied some 'for' and 'solve' methods but I'm getting this sort of results:
Can anybody help me?

  0 Comments

Sign in to comment.

2 Answers

Answer by Nadir Altinbas on 26 Oct 2019

k = 0 : 1 : 100;

  0 Comments

Sign in to comment.


Answer by darova
on 26 Oct 2019

Try
for K = 0:100
roots([1 2 K 2])
end

  0 Comments

Sign in to comment.