This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%sum of first 'n' terms
n = 10;
y = 55;
assert(isequal(summation(n),y))
ans =
55
|
2 | Pass |
%%sum of first 'n' terms
n = 0;
y = 0;
assert(isequal(summation(n),y))
ans =
0
|
3 | Pass |
%%sum of first 'n' terms
n = 17;
y = 153;
assert(isequal(summation(n),y))
ans =
153
|
1936 Solvers
Replace NaNs with the number that appears to its left in the row.
1710 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
1563 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
230 Solvers
120 Solvers