toUpper - code = double(cha); if code>=97...

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

View Full Document Right Arrow Icon
function x = toUpper(cha) %converts cha to upper case if it's lower case letter %if not lowercase letter, simply return cha
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: code = double(cha); if code>=97 && code<=122 code=code-(97-65); x = char(code); else x = cha; end...
View Full Document

Ask a homework question - tutors are online