How to find matrix Inverse over finite field?
I am using MATLAB, and I know gf() in MATLAB can enable me to do linear algebra operations over finite field $F_{2^m}$ for some m.
However, if I want to find the matrix inverse over finite field $F_p$ for some prime $p\neq 2$, how should I do in MATLAB and on the paper?
For example, if $p=11$ and if matrix A is:
$$\begin{bmatrix}2&1&2\\1&2&9\\1&2&7\end{bmatrix}$$
I need to derive its inverse $A^{-1}$ as:
$$\begin{bmatrix}8&6&1\\7&9&10\\0&6&5\end{bmatrix}$$