How can I solve three unknowns with three equations in Matlab?
Show older comments
I am new to Matlab and trying to solve these equations in Matlab.
(1.92-x)^2+(-0.88-y)^2=r^2
(1.42-x)^2+(1.22-y)^2=(r+343(0.00638))^2
(-1.51-x)^2+(1-y)^2=(r+343(0.01149))^2
I am very unsure of how this can be done. This must be possible in a software like Matlab. What code do you think it is best to use when solving this?
2 Comments
Christian Klaue
on 12 Feb 2016
John D'Errico
on 12 Feb 2016
NO. These are not linear equations. Gaussian elimination does not handle quadratic equations.
Accepted Answer
More Answers (1)
Disha
on 17 Nov 2022
0 votes
syms x y r E1 = (1.92-x)^2+(-0.88-y)^2 == r^2; E2 = (1.42-x)^2+(1.22-y)^2 == (r+343*(0.00638))^2; E3 = (-1.51-x)^2+(1-y)^2 == (r+343*(0.01149))^2; result = solve(E1,E2,E3) result = r: [2x1 sym] x: [2x1 sym] y: [2x1 sym]
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!