MyStrCmpI - i=1 equali = true while(i<= length(x&& equali if(x(i == y(i equali = true elseif(isletter(x(i&& isletter(y(i if(abs(x(i

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

View Full Document Right Arrow Icon
Sheet1 Page 1 function result = myStrCmpI(x, y) if (length(x) ~= length(y)) result = false return end diff = 'a' - 'A' i=1 .. i = i + 1 end result = ~(i <= length(x)) diff = 'a' - 'A'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i=1 equali = true while (i <= length(x) && equali) if (x(i) == y(i)) equali = true elseif (isletter(x(i)) && isletter(y(i))) if (abs(x(i) - y(i)) == diff ) equali = true else equali = false end else equali = false end i= i + 1 end result = ~(i <= length(x))...
View Full Document

This note was uploaded on 07/06/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online