This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % use iteration to receive credit. You may use strcmp and/or strcmpi for % this problem. function output = myStrFindI(str1, str2) index = 1 output = x = 1 while index <= length(str2) & (length(str2) - index) >= length(str1) if strcmpi(str1, str2(index:1:(index + length(str1) - 1))) == true output(x) = index x = x + 1 end index = index + 1 end end...
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.
- Fall '08