This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = [2.340 3.120 4.143 5.323 6.536 7.610 8.653 9.433];
assert((mean(your_fcn_name(x)-y_correct)<0.001))
x =
1 2 3 4 5 6 7 8 9 10
y =
Columns 1 through 9
1.7100 2.0300 3.2800 4.0500 5.1000 6.8200 7.6900 8.3200 9.9500
Column 10
10.0300
|
Select every other element of a vector
16215 Solvers
2233 Solvers
303 Solvers
295 Solvers
82 Solvers