%% Least-Squares on an Underdetermined System
% Solve an underdetermined system, x*C = D.

C = [1 0; 2 0; 1 0];
D = [1 2];
x = D/C

% MATLAB® issues a warning but proceeds with calculation.
%
% Verify that x is not an exact solution.

x*C-D

% Copyright 2012 The MathWorks, Inc.