Question: MATLAB Write a function called readthem that prompts the user for a string consisting of a number immediately followed by a letter of the alphabet.
MATLAB
Write a function called readthem that prompts the user for a string consisting of a number immediately followed by a letter of the alphabet. The function errorchecks to make sure that the first part of the string is actually a number, and to make sure that the last character is actually a letter of the alphabet. The function returns the number and letter as separate output arguments. Note: If a string 'S' is not a number, str2num(S) returns the empty vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
