Write a program (script) that
1.Ask for a string to assign to inStr
2.returns the index of a string that is a match (if it exists) of the string inStr from a list of strings strList.
3.Display the answer.
Note: Try using what we have learn so far or you can search in the MATLAB documentation or Help for functions you could use to do this.
Example: inStr = 'ball';
strList = {'strike', 'ball', 'home run', 'bat', 'hit'};
In this example the index of the string that matches is 2
Using MATLAB