MATLAB - String Handling
Which of the following is the correct syntax to find the starting indices of substring 'cat' in string
str = 'concatenate' using strfind?str = 'concatenate' using strfind?strfind syntaxstrfind(str, 'cat'). strfind('cat', str) reverses arguments. contains(str, 'cat') uses contains, not strfind. strfind(str, cat) misses quotes around 'cat'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions