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

99 Solutions

44 Solvers

Last Solution submitted on Feb 17, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers44

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!