Symbollically solving Ax=b

7 ビュー (過去 30 日間)
Kasun
Kasun 2013 年 10 月 7 日
回答済み: Shashank Prasanna 2013 年 10 月 7 日
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,

回答 (1 件)

Shashank Prasanna
Shashank Prasanna 2013 年 10 月 7 日
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.

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by