If I understand you correctly, you're trying to find one string within another in Matlab... if so, use strfind()
]. Be aware that the function is case sensitive, if you want to make it case insensitive, just make both strings either all lower
] or all upper
] before making the function call.