Cody

Solution 2013340

Submitted on 11 Nov 2019 by Pravallika T
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={'01', '56'; '234', '789'}; y_correct = '0123456789'; assert(isequal(your_fcn_name(x),y_correct));

z = 1×1 cell array {'01'} z = 1×1 cell array {'01234'} z = 1×1 cell array {'0123456'} z = 1×1 cell array {'0123456789'} y = '0123456789'

2   Pass
x={'' 'a' '1'; 'AA' 'BB' 'CC'; 'dog' 'cat' 'car'}; y_correct='AAdogaBBcat1CCcar'; assert(isequal(your_fcn_name(x),y_correct));

z = 1×1 cell array {0×0 char} z = 1×1 cell array {'AA'} z = 1×1 cell array {'AAdog'} z = 1×1 cell array {'AAdoga'} z = 1×1 cell array {'AAdogaBB'} z = 1×1 cell array {'AAdogaBBcat'} z = 1×1 cell array {'AAdogaBBcat1'} z = 1×1 cell array {'AAdogaBBcat1CC'} z = 1×1 cell array {'AAdogaBBcat1CCcar'} y = 'AAdogaBBcat1CCcar'

3   Pass
x={'We' 'do' ;'ll ' 'ne.'}; y_correct='Well done.'; assert(isequal(your_fcn_name(x),y_correct));

z = 1×1 cell array {'We'} z = 1×1 cell array {'Well '} z = 1×1 cell array {'Well do'} z = 1×1 cell array {'Well done.'} y = 'Well done.'