%INVERSE BY MATHLAB
%(Selcuk Bayin, METU-NCC, bayin@metu.edu.tr)
%Matrix of coefficients
clc
A=[1 3 1;1 1 4;1 2 1]
%%
b=[2;3;4]
%%
det(A)
%%
%Inverse matrix
Ainvs=inv(A)
%%
Ainvs*A
%%
x=A\b