% Tutorial for computing matrix inverses, mod 26
% Matt Boutell, Spring 2009

% Take M = |4 5|
%          |1 2|
M = [4 5; 1 2]
cipher = hillEncrypt(M, 'hello', 0)
pause

% We want to compute M^(-1) (mod 26)
Minv = matrixModularInverse(M);

plain = hillEncrypt(Minv, cipher, 0)
