MATLAB - String Handling
What is the output of the following MATLAB code?
str = 'abracadabra';
pos = strfind(str, 'ra');
disp(pos);
str = 'abracadabra';
pos = strfind(str, 'ra');
disp(pos);
strfind returns starting indices of matches, so output is [3 10].15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions