Cody

Problem 43582. Explode string

Solution 1148198

Submitted on 29 Mar 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = 'I am a Cody pro'; y_correct = {'I','am','a','Cody','pro'}; assert(isequal(your_fcn_name(x),y_correct))

Error: File: solution.m Line: 2 Column: 6 Unbalanced or unexpected parenthesis or bracket.

2   Fail
x = 'Break this up'; y_correct = {'Break','this','up'}; assert(isequal(your_fcn_name(x),y_correct))

Error: File: solution.m Line: 2 Column: 6 Unbalanced or unexpected parenthesis or bracket.

3   Fail
x = 'Lots of spaces'; y_correct = {'Lots','of','spaces'}; assert(isequal(your_fcn_name(x),y_correct))

Error: File: solution.m Line: 2 Column: 6 Unbalanced or unexpected parenthesis or bracket.

Suggested Problems

More from this Author10

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!