Solving system of equations with 3 unknowns
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello All,
I'm extracting points from a graph. I'll be using those points to find three unknowns from the equation of the form ax+by+cz = d.
If I'm extracting 3 points, then I can solve as simultaneous equations with 3 unknowns [AX=B form, Cramers's Rule]. But if I extract more than 3 points, how to solve?
0 commentaires
Réponses (2)
Matt J
le 16 Oct 2012
Whether with 3 or more than 3 variables, you will obtain an equation of the form
A*X=B
and you would solve it by doing X=A\B. There is no need to use Cramer's rule (and it's probably not a good idea).
4 commentaires
Swasti Khuntia
le 17 Oct 2012
1 commentaire
Matt J
le 17 Oct 2012
That would have to mean that you are not selecting enough linear independent points (2 or less). That raises the question as to why you don't just stop selecting after you have 2 points. That also raises the question as to how you hope to get a good fit to your parameters when you have fewer independent data points than parameters.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!