Converting system of equations to form Ax=b
Mostra commenti meno recenti
Hi,
I have the following system of equations:
- t + w + x = 100 eq(1)
t - u = 100 eq(2)
v + w - y - z = 0 eq(3)
u + v = 40 eq(4)
Suppose I have t = 100 and w + y+ z = 100, then I want to write this system of equations in the form Ax = b.
This is how I tried to do it:
eq(1): -100 + w + x = 100
=> w + x = 200
eq(2): t - u = 100
=> 100 - u = 100
=> u = 0
eq(3): v + w - y - z = 0
=> v + w- (y+z) = 0
=> v + w - (100 - w) = 0
=> v + 2w = 100
eq(4): u + v = 40
If I put u = 0 of eq(2) in it, I get:
v = 40
If I put v=40 in eq(3), I get:
w = 30
If I put it w=30 in eq(1), I get:
x = 170
I am stuck here. I am just not understanding what to do next to convert this all in system Ax=b. I am not sure even if I have done it in correct way. Can you please guide me in this all? Any help will be highly appreciated.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Programming 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!