The matpow command finds the power of a square matrix, computed using the Jordan form.
Example. Input:
Output:
Notice that jordan([[1,2],[2,1]]) returns