MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayFind a solution to a system of equations represented by a `n` by `n+1` matrix. For instance,

[ 2 0 4; => 2*x = 4 2 4 8 ] 2*x + 4*y = 8

Therefore, when given a=[2 0 4; 2 4 8] you should return a vector of solutions, v = [ 2 1 ]. Assume the system will always have a solution.

94 correct solutions
175 incorrect solutions

Last solution submitted on Jul 19, 2016

1 Comment

eggart
on 2 Mar 2016

Obviously round(A\b) is the alledgedly correct answer which is in general different from the numerical approximation of the solution.
I wonder whether this is intended?

1 Comment

David Hruska
on 29 Feb 2012

Assumes the solutions are always integers. The tests would ideally use a tolerance in checking the solutions.

2 Comments