MATLAB - String Handling
You want to find all positions of the substring 'ana' in
str = 'banana bandana' and check if it exists. Which code correctly does this?str = 'banana bandana' and check if it exists. Which code correctly does this?strfind to get positionsstrfind(str, 'ana') returns all starting indices of 'ana' in the string.contains to check existencecontains(str, 'ana') returns true if 'ana' is found anywhere in str.find for strings.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions