Question: using matlab please, thank you! Write a Boolean function isConsecutive that looks at a string and then determine if the letters are occurring consecutively in
using matlab please, thank you!
Write a Boolean function isConsecutive that looks at a string and then determine if the letters are occurring consecutively in the string. The function also determine the number of characters in the string, and the number of letters. Restrictions: The function should use the internal function isletter. The input string could be any length. Hint: This problem can use the break statement.


Are the letters consecutive? Write a Boolean function isConsecutive that looks at a string and then determine if the letters are occurring consecutively in the string. The function also determine the number of characters in the string, and the number of letters. Restrictions: The function should use the internal function isletter. The input string could be any length. Hint: This problem can use the break statement. For example [consecutiveLet ters, numberCharacters, numberLetters] 1sConsecutive (string) >> string-'123', string = 123 consecutiveetters logical numbe rCha racters = numberLetters = >> string= 'Josh2a. [consecutiveLetters, numberCharacters, numberLet ters] isConsecutive (string) = string = Josh2a consecutiveetters logical numbe rCha racters = numberLetters = >> string-'3rd.. [consecutiveLetters, numberCharacters, numberLetters] isconsecutive ( string) = string = 3rd. consecutiveetters logical numbe rCha racters = 4 numberLetters =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
