strmatch_anywhr.m
SYNTAX:
FUNCTION CALL:
irow= strmatch_anywhr(str,strs); rows containing str
[irow, jcol]= strmatch_anywhr(str,strs,'all'); return all matches
PURPOSE: Returns rows of strs which have str anywhere in line
INPUT: [default]
str= single row of text (ex: 'F2a')
strs= string array to look for str (ex: strvcat('PF1a','PF2a')
flag= 'all'; returns all matches [remove duplicate row entrys]
OUTPUT:
irow= row index of strs which have str (ex: 2)
jcol= colum index of 1st occurance of strs (ex: 2)
RESTRICTIONS:
str and strs must be type character; str is a single row
Dependencies