Matrix division to solve Ax=b
Afficher commentaires plus anciens
EDU>> a=[1 22 484 10648; 1 42 1764 74088; 1 52 2704 140608; 1 82 6724 551368]; EDU>> b=[4181;4179;4186;4189]; EDU>> x=a/b ??? Error using ==> mrdivide Matrix dimensions must agree.
EDU>> x=a./b ??? Error using ==> rdivide Matrix dimensions must agree.
EDU>> The preceding is what I have been trying to solve for sometime now. I know the dementions are different, however; what I don't know is "what to do to solve the problem. I am using r2011a, if that matters. The program it to solve a third order polynomial.
Thank You
Réponses (1)
Honglei Chen
le 7 Mar 2012
Use
x = a\b
see the documentation
doc mldivide
doc mrdivide
1 commentaire
John
le 7 Mar 2012
Catégories
En savoir plus sur Linear Algebra 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!