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))
|
2 | Pass |
%%sum of first 'n' terms
n = 0;
y = 0;
assert(isequal(summation(n),y))
|
3 | Pass |
%%sum of first 'n' terms
n = 17;
y = 153;
assert(isequal(summation(n),y))
|
348 Solvers
Get the length of a given vector
3560 Solvers
Who has power to do everything in this world?
318 Solvers
convert matrix to single column
306 Solvers
519 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!