Cody

Solution 2030354

Submitted on 21 Nov 2019
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 = {'I','love','MATLAB'}; y_correct = strings(size(x)); [y_correct{:}] = x{:}; assert(isequal(cell2str(x),y_correct))

Expected one output from a curly brace or dot indexing expression, but there were 0 results. Error in cell2str (line 2) [ y{:}]=x{:} Error in Test1 (line 4) assert(isequal(cell2str(x),y_correct))

2   Fail
x = {'I', 'love', 'MATLAB' 'I', 'love', 'Cody'}; y_correct = strings(size(x)); [y_correct{:}] = x{:}; assert(isequal(cell2str(x),y_correct))

Expected one output from a curly brace or dot indexing expression, but there were 0 results. Error in cell2str (line 2) [ y{:}]=x{:} Error in Test2 (line 5) assert(isequal(cell2str(x),y_correct))