Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 3 5 7 9 11 13 15 17 19];
y=[ 1 4 7 10 13 16 19 22 25 28];
y_correct = [ 1 12 35 70 117 176 247 330 425 532];
assert(isequal(your_fcn_name(x,y),y_correct))
|
2 | Pass |
x = [1 12 23 34 45 56 67 78 89 100];
y=[ 1 -10 -21 -32 -43 -54 -65 -76 -87 -98];
y_correct = [ 1 -120 -483 -1088 -1935 -3024 -4355 -5928 -7743 -9800];
assert(isequal(your_fcn_name(x,y),y_correct))
|
Find the sum of all the numbers of the input vector
31958 Solvers
594 Solvers
261 Solvers
129 Solvers
151 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!