MATLAB 判断字符串中是否含有特定的字符

2025-02-24 02:47:44
推荐回答(1个)
回答1:

使用strfind函数。S='Findthestartingindicesofthepatternstring';strfind(S,'in')ans=2151945使用regexp函数。str='batcatcancarCOATcourtcutctCAT-scan';..