Cody

Problem 44775. Solve The Equation

The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return the answers for x and y. For example:

 x1 = [2 2 6];
 x2 = [1 -1 0];
 2x + 2y = 6
 x - y = 0
 x = 1.5
 y = 1.5

Solution Stats

67.92% Correct | 32.08% Incorrect
Last Solution submitted on Nov 03, 2019

Problem Comments

Solution Comments