% Example to solve linear equations
%
% Solve Ax = b

A = [ 4 3 4 ; 4 6 8 ; 3 6 6 ];
b = [35 22 40 ]';

% Method 1 - Use backslash operator

x1 = A\b

pause

% Use inverse of A

x2 = inv(A) * b
