Question: how to calculate the inverse function in matlab?
Answer: X^(-1) is equivalent to inv(X) .
x = A\b is computed differently than x = inv(A)*b and is recommended for solving systems of linear equations.