Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = {'I','love','MATLAB'};
y_correct = strings(size(x));
[y_correct{:}] = x{:};
assert(isequal(cell2str(x),y_correct))
|
2 | Pass |
x = {'I', 'love', 'MATLAB'
'I', 'love', 'Cody'};
y_correct = strings(size(x));
[y_correct{:}] = x{:};
assert(isequal(cell2str(x),y_correct))
|
Change the sign of even index entries of the reversed vector
296 Solvers
412 Solvers
511 Solvers
2981 Solvers
199 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!