% threeLinearEquations.m
% Solves the system of linear equations
%    x+3y-2z=-7 
%   5x- y+ z=14
%  -3x+ y+5z= 8
% J.M.Soler. Oct.2011

A = [ 1  3 -2;     % matrix of coefficients
      5 -1  1;
     -3  1  5];
 
b = [-7;14;8];     % column vector of right hand sides

xyz = A\b          % column vector of solution

A*xyz              % check the solution
