www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/LeastSquaresonanUnderdeterminedSystemExample.m
%% 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(R) issues a warning but proceeds with calculation. %% % Verify that |x| is not an exact solution. x*C-D