isinstr
isinstr(str, strlist, cs) returns a vector of logical values with true for each elements of strlist that contains str and false otherwise.
An optional third input(cs) allows to specify if comparison is case sensitive (default) or not.
An optional third input(cs) allows to specify if comparison is case sensitive (default) or not.
Examples
> isinstr('ab', 'abcd')
[ans:true]
> isinstr('ab', 'ABcd')
[ans:false]
> isinstr('ab', 'ABcd', false)
[ans:true]
> Name = {'John';'Marc';'Sam';'Toni'}
Grades = {'B';'A';'B';'F'}
DOB = {'02-Jun-2012';'12-Aug-2012';'04-Oct-2011';'29-Aug-2012'}
T = table(Name,Grades,DOB)#
Name Grades DOB
John B 02-Jun-2012
Marc A 12-Aug-2012
Sam B 04-Oct-2011
Toni F 29-Aug-2012
> T(isinstr('Aug', T.DOB))#
Name Grades DOB
Marc A 12-Aug-2012
Toni F 29-Aug-2012