Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
m = 7;
n = 10;
y_correct = 26;
assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))
|
2 | Pass |
m = 5;
n = 10;
y_correct = 17;
assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))
|
3 | Pass |
m = 9;
n = 6;
y_correct = 19;
assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))
|
Find the sum of all the numbers of the input vector
31947 Solvers
115 Solvers
284 Solvers
Sum the entries of each column of a matrix which satisfy a logical condition.
136 Solvers
Simple equation: Annual salary
3779 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!