Question: Question 1 : Write a function catit 1 that will receive one input argument, which is a cell array. If the cell array contains only

Question 1: Write a function catit1 that will receive one input argument, which is a cell array. If the cell array contains only strings, it will return two strings: one string is all the strings from the cell array concatenated together, the other string is combining the last letters of each word in the cell array. Otherwise, it will return two empty strings. (35 Points)
>>fishes={tuna,pollack,salmon,cod,swai}
>>[str1,str2]=catit1(fishes)
OUTPUT
str1=tunapollacksalmoncodswai
str2=akndi

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 Programming Questions!