Find the position of a single non-matching character between two strings

findfirst(==(only(setdiff(s1,s2))), s1)
1 Like