How to solve this two variable equation and save values?
Mostrar comentarios más antiguos
Hello,
I have this two variable equation: X³+2X²+KX+2=0
Where 0≤K≤100.
All I need to do is to verify for which values of K, X≤0
I have tryied some 'for' and 'solve' methods but I'm getting this sort of results:

Can anybody help me?
Respuestas (2)
Nadir Altinbas
el 26 de Oct. de 2019
0 votos
k = 0 : 1 : 100;
darova
el 26 de Oct. de 2019
Try
for K = 0:100
roots([1 2 K 2])
end
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!