Problem 41. Cell joiner
Solution Stats
Problem Comments
-
12 Comments
There has been a function added in 2013a for this!!
I make it in R2013a,but I don't know the R2012b or other previous versions have this function.
Most of the solutions consider that delim=1char
i don't know
tricky one!!
nicequestion
Hello everyone :)
Just a quick one: the code I provide below here work fine in Matlab (r2019b), so each solution matches the one I'm asked to provide. However, when evaluating the code on Cody, I get "Assertion failed".
Can anyone please explain me if it's a matter of conversion or some details I am missing?
KR, Andrea
out_str=[];
for jj=1:length(in_cell)
tmp=char(in_cell(jj));
c=[tmp,delim];
if jj==1
out_str=c;
else
out_str=[out_str,c];
end
end
I used strjoin(in_string,' ')
passed the first two, third one failed.
no way for me
nice biology concept
This one is kinda hilarious, as (hint here) it may punish you for defining TOO much...
cool problem!
Solution Comments
Show commentsProblem Recent Solvers5217
Suggested Problems
-
3000 Solvers
-
given 3 sides, find area of this triangle
785 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
979 Solvers
-
Return unique values without sorting
872 Solvers
-
5960 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!