Modify the previous function to use the strjoin function. Is there a difference?
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:8| Question number:10.8
All Answers
total answers (1)
catitii.m
function outsent = catitii(ca)
outsent = '';
if iscellstr(ca)
outsent = strjoin(ca);
end
end
Yes:
>> catitii(fishies)
ans =
tuna shark salmon cod
need an explanation for this answer? contact us directly to get an explanation for this answer