This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % 'phones' would become 'psheon'. % function code = encodeCipher(string) code = ; for i = 1:floor(length(string)/2) code = [code string(i) string(end-(i-1))]; end if(mod(length(string), 2) == 1) code = [code string(ceil(end/2))]; end...
View Full Document
This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Tech.
- Fall '08