Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = reshape([1:10],[],1);
y_correct = [1;3;4;5;7;8;10];
assert(isequal(your_fcn_name(x),y_correct))
y =
1
3
4
5
7
8
10
|
2 | Pass |
x=reshape([10:-1:1],[],1);
y_correct=[10;8;7;6;4;3;1];
assert(isequal(your_fcn_name(x),y_correct))
y =
10
8
7
6
4
3
1
|
1261 Solvers
Sum of first n terms of a harmonic progression
257 Solvers
Determine Whether an array is empty
646 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
297 Solvers
414 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!