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

Question 1

Write a functioncatitthat will receive one input argument which is a cell array. If the cell

array contains only strings, it will return one string which is all of the strings from the cell array

concatenated together-otherwise, it will return an empty string. Here is one example of calling

the function:

>> fishes = {'tuna', 'shark', 'salmon', 'cod'};

>> catit(fishes)

ans=

tunasharksalmoncod

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!