Cody

Solution 1144014

Submitted on 23 Mar 2017 by Temitope Akinpelu
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 = string({'I','love','MATLAB'}); y_correct = {'I','love','MATLAB'}; assert(isequal(str2cell(x),y_correct))

y = 1×3 cell array [] [] [] y = 1×3 cell array 'I' [] [] y = 1×3 cell array 'I' 'love' [] y = 1×3 cell array 'I' 'love' 'MATLAB'

2   Pass
x = string({'I','love','MATLAB';'I','love','Cody'}); y_correct = {'I','love','MATLAB' 'I','love','Cody'}; assert(isequal(str2cell(x),y_correct))

y = 2×3 cell array [] [] [] [] [] [] y = 2×3 cell array 'I' [] [] [] [] [] y = 2×3 cell array 'I' [] [] 'I' [] [] y = 2×3 cell array 'I' 'love' [] 'I' [] [] y = 2×3 cell array 'I' 'love' [] 'I' 'love' [] y = 2×3 cell array 'I' 'love' 'MATLAB' 'I' 'love' [] y = 2×3 cell array 'I' 'love' 'MATLAB' 'I' 'love' 'Cody'