Using the Math Function block set to 'pow' to do the inverse operation does the element-wise inverse rather than inverting the whole matrix. To carry out a matrix inverse, please follow the steps below:
- Add a Product block into the model
- Double click on the block
- Under 'Number of inputs' section replace the number '2' with the right-matrix division symbol ' / '
- Select 'Multiplication' as 'Matrix(*)'
This will return the matrix inverse.