Check out example codes for "matlab matrix inverse". It will help you in understanding the concepts better.
Code Example 1
% To get the inverse of a matrix use inv()
X = [1 0 2; -1 5 0; 0 3 -9]
% 1 0 2
% -1 5 0
% 0 3 -9
Y = inv(X)
% 0.8824 -0.1176 0.1961
% 0.1765 0.1765 0.0392
% 0.0588 0.0588 -0.0980
Learn ReactJs, React Native from akashmittal.com