Problem 1218. Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of strings C.
Example of 2 inputs:
C = {'I','MATLAB'}; DELIMITER = {' love '})
Expected Output:
S = 'I love MATLAB'
Solution Stats
Problem Comments
-
1 Comment
goc3
on 31 May 2017
Additional test cases have been added.
Solution Comments
Show commentsProblem Recent Solvers155
Suggested Problems
-
3134 Solvers
-
1096 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
2848 Solvers
-
Project Euler: Problem 3, Largest prime factor
1267 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
587 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!