inv(matrix)

Matrix inverse.

inv([1,2;3,2])
matrixThe matrix to be inverted.
return valueThe inverse.

The inv function can be used only with square matrices. For singular matrices an error message will be thrown.

This function can be used with complex matrices as well as matrices with quantities.

For non-square matrices see pinv.