Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = string({'I','love','MATLAB'});
y_correct = {'I','love','MATLAB'};
assert(isequal(str2cell(x),y_correct))
ans =
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))
ans =
2×3 cell array
{'I'} {'love'} {'MATLAB'}
{'I'} {'love'} {'Cody' }
|
19332 Solvers
Reverse the Words (not letters) of a String
297 Solvers
321 Solvers
2981 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!