Roots of a nonlinear equations system
1 view (last 30 days)
Show older comments
I’m trying to solve a nonlinear equations system that works with symbolic variables
I have found some solutions that require turning the symbolic variables to indexed variables (x changes to x(1), y changes to x(2)) but I don’t know how to do that.
Can someone please help me? Also if you have any suggestion for finding the roots of the equations I would appreciate it.
2 Comments
Answers (1)
Star Strider
on 16 Nov 2022
syms x y
fcn = [-4*y^2 + 4*x - 4 == 0; 16*y^2 - 8*x*y ==0]
S = solve(fcn)
x = S.x
y = S.y
.
2 Comments
Star Strider
on 16 Nov 2022
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
See Also
Categories
Find more on Symbolic Math Toolbox 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!