Symbollically solving Ax=b
조회 수: 3 (최근 30일)
이전 댓글 표시
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,
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!