Solution 1482784

Submitted on 7 Apr 2018 by J. S. Kowontan
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
S = 'Testing, testing, 1, 2, 3'; assert(isequal(str2cell(S),{S}))

2   Pass
S = {'I','love','MATLAB'}; assert(isequal(str2cell(S),S))

3   Pass
S = datestr(now); assert(isequal(str2cell(S),{S}))

4   Pass
for ii=1:100 S = char(randi([97,122],1,100)); assert(isequal(str2cell(S),{S})) end

5   Pass
for ii=1:100 S = num2cell(char(randi([97,122],100,1))); assert(isequal(str2cell(S),S)) end