Cody

Solution 1927728

Submitted on 9 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = [1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.32 9.95 10.03]; y_correct = [2.340 3.120 4.143 5.323 6.536 7.610 8.653 9.433]; assert((mean(mysmooth(x)-y_correct)<0.001))

z = Columns 1 through 17 2.9241 6.9426 15.3385 27.1678 44.6434 70.5984 103.8475 145.7250 199.5066 261.1318 298.3362 336.1474 355.3539 365.9856 359.0626 319.8294 265.9017 Columns 18 through 19 199.5970 100.6009

Matrix dimensions must agree. Error in Test1 (line 3) assert((mean(mysmooth(x)-y_correct)<0.001))

2   Fail
x=[1 1 1] y_correct=1 assert((mean(mysmooth(x)-y_correct)<0.001))

x = 1 1 1 y_correct = 1 z = 1 2 3 2 1

Assertion failed.