This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % - Every char in str that is not the first letter of a word and a % upper case letter should become lower case. % function str = titleCase(str) str = lower(str); % making everything lowercase change = [1 (strfind(str, ' ')+1)]; % determining the indices of the letters to change to upper case str(change) = upper(str(change)); % changing the letters to upper case using the indices % then assigning it to str to be returned...
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 Institute of Technology.
- Fall '08