>> help testit testit.m getinput has 4 input parameters: 1) string to prompt user with (' enter a value between 2 and 4') 2) maximum number of attempts for the user to enter a value (5) 3) the smallest value that is valid (2) 4) the largest value that is valid (4) getinput has 2 output parameters: 1) val (the value that was obtained from the user) 2) okay (a logical flag set true if a valid input obtained in maxtries attempts; else false) >> help getinput this function will prompt the user for a "value" using the prompt in "str_prompt". the user will be prompted a "maxtries" number of times to obtain a "value" between "maxval" and "minval" >> testit enter a value between 2 and 42 val = 2 okay = 1 val = 2 >> testit enter a value between 2 and 43 val = 3 okay = 1 val = 3 >> testit enter a value between 2 and 41 invalid input, try again enter a value between 2 and 49 invalid input, try again enter a value between 2 and 48 invalid input, try again enter a value between 2 and 47 invalid input, try again val = 7 okay = 0 sorry you did not enter a valid number >> exit