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 aMATLAB

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!