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 |
n = 10;
y = 55;
assert(isequal(summation(n),y))
ans =
[]
|
2 | Pass |
n = 0;
y = 0;
assert(isequal(summation(n),y))
ans =
[]
|
3 | Pass |
n = 17;
y = 153;
assert(isequal(summation(n),y))
ans =
[]
|
54287 Solvers
Remove any row in which a NaN appears
6827 Solvers
Sum of diagonal of a square matrix
1327 Solvers
Find the largest value in the 3D matrix
1056 Solvers
2619 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!