Question: Matlab Function Name: IongestWord Input: 1. ( 1xN char) A string containing words separated by spaces Output: 1. (1XM char) The longest word in the

Matlab

 Matlab Function Name: IongestWord Input: 1. ( 1xN char) A string

Function Name: IongestWord Input: 1. ( 1xN char) A string containing words separated by spaces Output: 1. (1XM char) The longest word in the input string 2. (double) The length of the longest word in the input string Note: - There will be no duplicate word lengths Examples: [ word 1 , len 1]= longestWord( 'Go Jackets') >> word1 = 'Jackets ' > len1 =7 [word2, len2] = longestWord('Every Good Day Is A Treasure') >> word 2= 'Treasure ' > len 2=8 [word3, len3] = longestword('Today is a good day') > word 3= ' Today' > len 3=5 Function 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!