% % Written by: % -- % John L. Weatherwax 2006-08-28 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- tmp = [ 1000, 500; 150, 100; 100, 200 ]; A = 1./tmp; % Compute the Left Pseudoinverse: % ALPI = (A' * A) \ A'; y = [ 0.5; 2.4; 2 ]; % and then x based on this: % ALPI * y % vs. the direct option: % [ -3000, 600; 2000, -300 ] * [ 0.5; 2.4 ]