The first thing to do is to represent it as a matrix equation. The coefficient matrix is
and the forcing matrix is
The system can be abbreviated as AX=B. After you enter the matrices A and B (do it now!), you can ask Matlab or Octave to solve the system by Gaussian elimination. Just row reduce the augmented matrix with the command
rref([A,B])and read off the solutions. Do it now!
Alternatively, you can ask Matlab or Octave to calculate X by ``dividing'' the equation AX=B by A on the left (since the factor A is on the left). Left division is indicated by a backslash:
X = A\BTry it now. You should get the same answer that you got from Gaussian elimination. Note, however, that left division will only produce one solution, even if the system has infinitely many solutions.