Cody

Solution 1045999

Submitted on 7 Nov 2016
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 -2 1]; y_correct = [1;1]; assert(isequal(solvepol(x),y_correct))

Undefined function 'solve' for input arguments of type 'double'. Error in solvepol (line 2) y = solve(x); Error in TestPoint1 (line 3) assert(isequal(solvepol(x),y_correct))

2   Fail
x = [1 -3 2]; y_correct = [2;1]; assert(isequal(solvepol(x),y_correct))

Undefined function 'solve' for input arguments of type 'double'. Error in solvepol (line 2) y = solve(x); Error in TestPoint2 (line 3) assert(isequal(solvepol(x),y_correct))