%% Least-Squares Solution of Underdetermined System
% Solve a system of linear equations, A*x = b.

A = [1 2 0; 0 4 3];
b = [8; 18];
x = A\b

% Copyright 2012 The MathWorks, Inc.