MATLAB: Solve the system of equations

Solve the system of equations
[1 2 0 0
4 3 -6 0
0 5 -1 9
0 0 7 7]
x= 1
2
0
0

Best Answer

A=[1 2 0 0
4 3 -6 0
0 5 -1 9
0 0 7 7];
b=[1;2;0;0];
since
det(A)==0
=
0
the operator
\
can also be used
x=A\b
x =
0.500000000000000
0.250000000000000
0.125000000000000
-0.125000000000000
if you find this answer useful would you please be so kind to mark my answer as Accepted Answer?
To any other reader, please if you find this answer of any help solving your question,
please click on the thumbs-up vote link,
thanks in advance
John BG