Find the first occurrence of a character in a string
res = strchr(haystack,char)
A character string or matrix of character strings
a character.
A character string or matrix of character strings
res = strchr(haystack,char) Returns the first occurrence
of character in the string str.
num must have same dimensions than haystack or only one char.
strchr('This is a sample string','s') strchr(['This is a sample string','in scilab'],'s') strchr(['This is a sample string','in scilab'],['s','a'])