Cody

# Problem 1899. Convert a Cell Array into an Array

Solution 2073945

Submitted on 30 Dec 2019 by Asif Newaz
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));

y = '01' y = '01234' y = '0123456' y = '0123456789'

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

y = 0×0 empty char array y = 'AA' y = 'AAdog' y = 'AAdoga' y = 'AAdogaBB' y = 'AAdogaBBcat' y = 'AAdogaBBcat1' y = 'AAdogaBBcat1CC' y = 'AAdogaBBcat1CCcar'

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

y = 'We' y = 'Well ' y = 'Well do' y = 'Well done.'

### Community Treasure Hunt

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

Start Hunting!