LS solution to min tr(D*D')+lambdaA*aa'*aa+lambdaB*bb'*bb, where D=R-aa*ones(1,n)-ones(m,1)*bb';
Published with MATLAB® R2014a