I have the following Equations
T2+T4-3.615*T1=0;
T1+10+2*T5-5.752*T2=0;
T1+38+2*T5-4*T4=0;
83+T4+T2+10-4*T5=0;
i've tried the following to find the values of T1,T2,T4,T5
syms T1 T3 T4 T2 T5 positive
T2+T4-3.615*T1=0;
T1+10+2*T5-5.752*T2=0;
T1+38+2*T5-4*T4=0;
83+T4+T2+10-4*T5=0;
sol=solve(T1,T2,T3,T4)
but its not working.
You have 4 equations and 4 unknowns. This is very easily solved in MATLAB using the equation
AT = b
, whereT = A\b
.First move all the constant values over to the RHS. Then, reorder the equations to the form below (but don't write
a11 = -3.615
etc in MATLAB, it's just to visualize it so that it's easier to create theA
matrix below). If you have more equations and unknowns it might be easiest to do this with pen and paper before you create the matrix in MATLAB, as it's easy to get a sign wrong, or overlook a value somewhere.Create a matrix
A
with the valuesa11, a12 ... all the way to a44
. Now you can find theT
's by using\
like this: