MATLAB: How to slove AX=B, an over determined system represented by matrices. A is 500 x 3 matrix and B is 500 x 1 matrix and need to find ‘X’ a 3×1 matrix.

soving over determined system

I dont have optimization toolbox

Best Answer

By directly using linsolve.
A numeric example:
%random datas
A=randi([1 3],500,3);
B=randi([1 3],500,1);
%solution
X=linsolve(A,B)
Related Question