Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [2,3,5];
y_correct = [2,2,3,3,5,5];
assert(isequal(duplicate(x),y_correct))
y =
0 0 0 0 0 5
y =
0 0 0 0 5 5
y =
0 0 0 3 5 5
y =
0 0 3 3 5 5
y =
0 2 3 3 5 5
y =
2 2 3 3 5 5
|
686 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
2810 Solvers
Vectorize the digits of an Integer
269 Solvers
343 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!