In: Electrical Engineering
Matlab program
Create a function, when given a two-digit integer as input, prints the equivalent English phrase. For example, given 39, output thirty-nine. Limit the input numbers to be in the range 21 to 39.
MATLAB program for above requirement has been attached below. the user is allowed to input a number. A function is defined 'num_to_phrase', which will do the job. In case of invalid input, necessary errors will be prompted. Copy the code exactly in MATLAB editor, save it and run...!!!
Comment in case of any issue.