%%Matlab code for linear system Using Inverse Method % Here we sue either mldivide or inv or A\b approach format compact A= [ 1 3 -2 ; -1 -1 5 ; 0 1 -9 ]; b=[1 -2 3]'; %x = mldivide(A,b); %x=inv(A)*b; %x=A^(-1)*b; x=A\b;