echo on

A = [-1 1 2; 3 -1 1;-1 3 4];
b = [2;6;4];
x = inv(A)*b
x = A\b

echo off