For MATLAB The following command findstrs does what 1 Return
For MATLAB
The following command: find(str==\'s\') does what? 1. Returns the index array of each position of\'s\' in the str character array 2. Finds the position of the first\'s\' within the str character array 3. Finds the position of the last\'s\' within the str character array 4. Returns the index of all characters except\'s\'Solution
str = \"my name is ayush verma\";
index = find(str == \'s\');
disp(index);
% output: 10 15
% find function returns all the indexes of character \'s\'
% as index array in str character array
% Answer: Option (1)
