Symbollically solving Ax=b
Afficher commentaires plus anciens
For example solve:
[a,b;c,d]*[x1;x2] = [b1;b2]
Matlab should return:
x1 = -(b*b2-d*b1)/(ad-bc) x2 = (a*b2 -c*b1)/(ad-bc)
thanks for your help,
Réponses (1)
Shashank Prasanna
le 7 Oct 2013
It does.
>> syms a b c d x1 x2 b1 b2
>> x = solve([a,b;c,d]*[x1;x2]==[b1;b2])
>> x.x1
>> x.x2
You can start here:
Check the documentation and post your attempt for quick, better response.
Catégories
En savoir plus sur Nonlinear Optimization dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!