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

61.05% Correct | 38.95% Incorrect
Last Solution submitted on Aug 21, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers40

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!