Question: How many letters? Write a function HowManyLetters to extract from a cell array of strings, a specified cell, and within the cell determine the number



How many letters? Write a function HowManyLetters to extract from a cell array of strings, a specified cell, and within the cell determine the number of letters and if the letters are consecutive. For example, givern strig-, 123 1 am Josh2a Tree the 3rd.jcellArray0fst rings=split(strig) cellArrayOfStrings - 8x1 cell array 123 Matlab only am 'Josh2a' Tree the '3rd. Calling HowManyLetters will produce >> [numberLetters, numberCharacters, numberLetters = consecutive, extractedString] H0wManyLetters(cellArrayofst rings, 1) numberCharacters = consecutive logical extractedSt ring = >> [numberLetters, 123 numberCharacters, consecutive, extractedstring] HoManyLetters(cellArrayofSt rings, 5) numberLetters = numberCharacters = consecutive logical extractedSt ring- >> [numberLetters, numberCharacters, "Josh2a consecutive, extractedString] HoManyLetters(cellArrayofst rings, 8) numberLetters = numberCharacters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
