Cody

Solution 1334909

Submitted on 11 Nov 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 = string({'I','love','MATLAB'}); y_correct = {'I','love','MATLAB'}; assert(isequal(str2cell(x),y_correct))

Undefined function 'cell2str' for input arguments of type 'string'. Error in str2cell (line 2) y = cell2str(x); Error in Test1 (line 3) assert(isequal(str2cell(x),y_correct))

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

Undefined function 'cell2str' for input arguments of type 'string'. Error in str2cell (line 2) y = cell2str(x); Error in Test2 (line 4) assert(isequal(str2cell(x),y_correct))