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))
|
556 Solvers
Sum the numbers on the main diagonal
453 Solvers
Fix the last element of a cell array
344 Solvers
320 Solvers
176 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!