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
-
12 Comments
Show
9 older comments
Tesfaye Girma
on 23 Feb 2021
nice biology concept
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!
Solution Comments
Show commentsGroup

Cody Challenge
- 12 Problems
- 465 Finishers
- Add two numbers
- Find the sum of all the numbers of the input vector
- Quote Doubler
- De-dupe
- Cell joiner
- Remove all the words that end with "ain"
- Nearest Numbers
- Find state names that start with the letter N
- Word Counting and Indexing
- Given two arrays, find the maximum overlap
- It dseon't mettar waht oedrr the lrettes in a wrod are.
- Counting in Finnish
Problem Recent Solvers6531
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!