Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started