Cody

Problem 43582. Explode string

Solution 1220302

Submitted on 26 Jun 2017 by Jean-Marie Sainthillier
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   Pass
x = 'I am a Cody pro'; y_correct = {'I','am','a','Cody','pro'}; assert(isequal(your_fcn_name(x),y_correct))

ans = 1×5 cell array 'I' 'am' 'a' 'Cody' 'pro'

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

ans = 1×3 cell array 'Break' 'this' 'up'

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

ans = 1×3 cell array 'Lots' 'of' 'spaces'