Problem 41. Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string from the cell array separated by the delimiter.
For example, this input
in_cell = {'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur'}; delim = ' ';
should produce this output:
out_str = 'Lorem ipsum dolor sit amet consectetur';
Solution Stats
Problem Comments
-
13 Comments
Show
10 older comments
Aramus Cross
on 14 Aug 2021
This one is kinda hilarious, as (hint here) it may punish you for defining TOO much...
Aidan
on 17 Nov 2022
cool problem!
Isaac
on 31 Mar 2025 at 4:56
That was a great problem
Solution Comments
Show commentsProblem Recent Solvers6615
Suggested Problems
-
Find the alphabetic word product
3376 Solvers
-
Project Euler: Problem 5, Smallest multiple
1506 Solvers
-
Find the largest value in the 3D matrix
1553 Solvers
-
Create a vector whose elements depend on the previous element
714 Solvers
-
5531 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!