Solving linear systems with MATLAB
An example with a unique solution: ${\displaystyle \begin{align}x+y+2z&=9\\2x+4y-3z&=1\\3x+6y-5z&=0\end{align}}$
>> A = [ 1 1 2 ; 2 4 -3 ; 3 6 -5 ] A = 1 1 2 2 4 -3 3 6 -5 >> b = [ 9 ; 1 ; 0 ] b = 9 1 0 >> A\b ans = 1.0000 2.0000 3.0000