-
2 Comments
Lorenzo
on 15 Apr 2014
ok, is not really elegant not short, but it's correct. why doesn't it pass the test?
Mattias
on 4 Jan 2015
The problem is that your output is a cell string and not a character array. You can get a char array by adding out_str=char(out_str); in the end, or work with char arrays from the beginning by using in_cell{1} and in_cell{i} instead of in_cell(1) and in_cell(i).
Suggested Problems
-
Return a list sorted by number of occurrences
2822 Solvers
-
Compute a dot product of two vectors x and y
1006 Solvers
-
Create a vector whose elements depend on the previous element
715 Solvers
-
Sum of first n positive integers
595 Solvers
-
608 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!