function [ ] = DisplayPerm(Perm) %[ ] = DisplayPerm(Perm) format compact fprintf(' Plaintext Ciphertext \r') fprintf('===============================\r') for k=0:25 CtextInt = Perm(2, k+1)-1; fprintf(' %s %s \r', char(97+k), char(65+CtextInt)); end;