Cody

Solution 1125936

Submitted on 19 Feb 2017
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 'syms' for input arguments of type 'char'. Error in solvepol (line 2) syms a; 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 'syms' for input arguments of type 'char'. Error in solvepol (line 2) syms a; Error in TestPoint2 (line 3) assert(isequal(solvepol(x),y_correct))