In: Advanced Math
How to write a self-defined function to find the inverse of a matrix by using Gaussian Jordan method in MATLAB? Thanks.
MATLAB function for Guassian Jordan method to find inverse of matrix


we call the above function for following example which is not Square

Output generated is

Again we call the above function for following invertiable matrix

Output generated is

Call above function if it is not invertiable

Output generated

Call above function for one more matrix which contains rows entries zeros

Output
