Solving linear systems in Matlab
Mostra commenti meno recenti
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 Commento
Bruno Luong
il 24 Ago 2023
Modificato: Bruno Luong
il 24 Ago 2023
In some sense x = A\u - b is the worse you can pick.
Risposta accettata
Più risposte (1)
Steven Lord
il 24 Ago 2023
0 voti
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.
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!