Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = [1 2 3]
b = [4 5 6]
y_correct = [4 13 28 27 18];
assert(isequal(your_fcn_name(a,b),y_correct))
a =
1 2 3
b =
4 5 6
|
2 | Pass |
%%
a = [3 4 0]
b = [9 6 2 0 1]
y_correct = [27 54 30 8 3 4 0];
assert(isequal(your_fcn_name(a,b),y_correct))
a =
3 4 0
b =
9 6 2 0 1
|
5833 Solvers
831 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Calculate the area of a triangle between three points
874 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!