Hey can someone please help me with this question on MATLAB

Hey, can someone please help me with this question on MATLAB, been stuck for a while.

The function has been defined as \"function [numWords, maxWordLength, maxNumVowels] = analyzeText(text)\" and this is code for MATLAB

2. (10 points) Write a function called analyzeText that accepts a string as input and (1) counts the number of words, (2) identifies the length of the longest word; and (3) identifies the greatest number of vowels (a, e, i, o, u) in a word. The function will be called as follows: [num Words maxWordLength, max Numvowels analyze Text (text) where the variable text contains the string supplied to the function, numwords returns the number of words, maxWordLength returns the length of the longest word in the string, and maxNumvowels returns the greatest number of vowels present in any word. Following are examples of correct function behavior: [nw mwl mnv] analyze Text The woods are lovely dark and deep\') nW mwl mnV [nw mwl mnv] analyze Text But I have promises to keep\') nW mw 1 mnV If you are using the strtok function to tokenize the string, read the release notes regarding its behavior: https:// www.mathworks.com/help/matlab/ref/strtok .html

Solution

Solution:

Hey, can someone please help me with this question on MATLAB, been stuck for a while. The function has been defined as \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site