Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
b =
2
ans =
[]
|
2 | Pass |
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
b =
7
ans =
[]
|
3 | Pass |
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
b =
25
ans =
[]
|
Is my wife right? Now with even more wrong husband
1241 Solvers
Flip the main diagonal of a matrix
506 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Basics: 'Find the eigenvalues of given matrix
322 Solvers
2724 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!