This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
z = 5
x = 5;
y_correct = 18.75;
assert(isequal(tub(z,x),y_correct))
z =
5
|
Find the sum of the elements in the "second" diagonal
994 Solvers
401 Solvers
309 Solvers
Count decimal digits of a number
176 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!