Matlab function for finding matrix inverse with cayley hamilton theory

901 Views Asked by At

I want to write function in matlab that would calculate the inverse of a matrix using its trace. I know that there are other ways to calculate the inverse but I need it to be with trace. I couldn't find anything in any other sites.