How to solve 4 linear equations with 4 unknowns?
Show older comments
I got 4 linear equations with 4 unknown values to solve (R1,R2,R3,R4). I tried using matalb to get the answers and I'm having a difficult time. Can anyone help me solve this?
equ1='R1+R2 = 93.386 + (1.644*R3) - (9.9057*R4)'
equ2='R1+R2 = 73.02 + (2.263*R3) - (1.761*R4)'
equ3='R1+R2 = -141.48 + (12.62*R3) - (0.63*R4)'
equ4='R1+R2 = 31.725 + R3 + R4'
sol=solve(equ1,equ2,equ3,equ4)
Accepted Answer
More Answers (1)
youssef
on 27 Dec 2023
eq1= 5*x + 44*y + 420*z + 4256*t == 6004;
eq2= 44*x + 420*y + 4256*z + 44964*t == 62276;
eq3= 420*x + 4256*y + 44964*z + 488864*t == 669464;
eq4= 4256*x + 44964*y + 488864*z + 5422260*t == 7372916;
1 Comment
syms x y z t
eq1= 5*x + 44*y + 420*z + 4256*t == 6004;
eq2= 44*x + 420*y + 4256*z + 44964*t == 62276;
eq3= 420*x + 4256*y + 44964*z + 488864*t == 669464;
eq4= 4256*x + 44964*y + 488864*z + 5422260*t == 7372916;
[A,B] = equationsToMatrix([eq1; eq2; eq3; eq4], [x y z t])
A\B
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

