Question: (a) Write a MATLAB Function verifier that . Takes a string (character vector) str as its only input parameter Determines if str is a valid

(a) Write a MATLAB Function verifier that . Takes a string (character vector) str as its only input parameter Determines if str is a valid sentence, under the following rules: - It is at least two characters long - It is at at most 1024 characters long - It starts with a capital letter - It ends with a period . Returns either true or false based on the above determination. (b) Write a MATLAB Script tester that: Prompts the user to enter a string (sentence) and store what the user enters into a string variable another variable. Displays a brief report to the screen, which includes the user's input value and the deter- . Stores the result of calling your verifier function, with the user's string as input, into mination of the input's validity based on your function call
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
