Solving linear systems in Matlab
이전 댓글 표시
How do I solve for x in u = A(x+b)? A is a matrix, and the other terms are vectors. Isn't it something like x = A\u - b ? I'm not sure about subtracting the b term, however.
댓글 수: 1
Bruno Luong
2023년 8월 24일
편집: Bruno Luong
2023년 8월 24일
In some sense x = A\u - b is the worse you can pick.
채택된 답변
추가 답변 (1개)
Steven Lord
2023년 8월 24일
0 개 추천
Define a new variable y such that y = x+b.
Using this new variable simplifies your system to u = A*y.
Solve this simplified system for y using the backslash operator, y = A\u.
Substituing into that solution using the definition of y, we know x+b = A\u.
Subtract b from both sides to get x = (A\u)-b.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!