Cody

Solution 1017005

Submitted on 14 Oct 2016 by Luca Fenzi
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   Pass
x=linspace(0,1,50)'; y=4*x-1+ randn(50,1); % perturbed observations sol = Lls2(x,y) assert(abs(sum(Lls2(x,y))-4+1)<2)

sol = 3.8905 -1.0253

2   Pass
x=linspace(0,1,50)'; y=7*x+45+ randn(50,1); % perturbed observations sol = Lls2(x,y) assert(abs(sum(Lls2(x,y))-7-45)<2)

sol = 6.6207 45.0826

Suggested Problems

More from this Author2