matlab遇到的问题

img


为什么这里的索引是3-23,而不是1-23,我是初学者,我对这个不是很理解,请详细告知我一下,谢谢

这里是指friend在s1出现的位置,s1[3]是f,s1[23]也是f,对应friend的f
matlab的findstr函数:
https://jingyan.baidu.com/article/90bc8fc8b008aef653640c19.html