function [Q] = Decode(P,A) % function [Q] = Decode(P,A) % A is the decoding 2-by-2 matrix % P,Q are 2-by-M matrices of ciphertext % the function transforms the ciphertext as Q = A*P (mod 26) Q = mod(A*P,26);