Cody

Solution 1006493

Submitted on 10 Oct 2016 by deoksu kim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a=x\y assert(isequal(your_fcn_name(x,y),a))

x = 1 2 3 4 5 6 7 8 9 10 y = 2.4000 7.8000 11.1000 12.4000 11.2000 16.4000 17.3000 19.9000 22.9000 23.8000 a = 2.5447 a = 2.5447