Cody

Problem 43334. Solve the system of linear equations

Solution 1012728

Submitted on 12 Oct 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=[4 -2 6 8;2 8 2 4;6 10 3 0]; y_correct = [ -1.8049 0.2927 2.6341]; assert(abs(sum(solvepol(x)-y_correct))<0.01)

Undefined function 'solvepol' for input arguments of type 'double'. Error in Test1 (line 5) assert(abs(sum(solvepol(x)-y_correct))<0.01)

2   Fail
x=[ 9 10 3 10 10 7 6 2 2 1 10 10]; y_correct = [ -2.6456 3.0127 1.2278]; assert(abs(sum(solvepol(x)-y_correct))<0.01)

Undefined function 'solvepol' for input arguments of type 'double'. Error in Test2 (line 7) assert(abs(sum(solvepol(x)-y_correct))<0.01)

Suggested Problems

More from this Author27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!