function [Q] = Encode(P,A) % function [Q] = Encode(P,A) % A is the encoding 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);