fauxLeet - leet(leet>='A&leet<='Z =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function leet = fauxLeet(str) f % We will set the output to be the input, and edit the output. leet = str; l % NOTE: We could have also accomplished this by naming the input and output % the same in the function header, like so: % function leet = fauxLeet(leet) % % Convert the string to lower case
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: leet(leet>='A'&leet<='Z') = leet(leet>='A'&leet<='Z')+'a'-'A'; l % Perform the substitutions leet(leet=='e') = '3'; leet(leet=='l') = '1'; leet(leet=='o') = '0'; leet(leet=='t') = '7'; leet(leet=='s') = '$'; leet(leet=='a') = '@';...
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.

Ask a homework question - tutors are online