Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4 5 6 7;1 2 3 4 5 6 7];
y_correct = [1;1;2;2;3;3;4;4;5;5;6;6;7;7]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
1
1
2
2
3
3
4
4
5
5
6
6
7
7
ans =
1
1
2
2
3
3
4
4
5
5
6
6
7
7
|
6723 Solvers
831 Solvers
376 Solvers
348 Solvers
Replace every 3rd element in a vector with 4
170 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!