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
Get step-by-step solutions from verified subject matter experts
