How can I solve three unknowns with three equations in Matlab?
Afficher commentaires plus anciens
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 commentaires
Christian Klaue
le 12 Fév 2016
John D'Errico
le 12 Fév 2016
NO. These are not linear equations. Gaussian elimination does not handle quadratic equations.
Réponse acceptée
Plus de réponses (1)
Disha
le 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]
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!