This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Form least-squares augmented system


S = spaugment(A,c)
S = spaugment(A)


S = spaugment(A,c) creates the sparse, square, symmetric indefinite matrix S = [c*I A; A' 0]. The matrix S is related to the least-squares problem

min norm(b - A*x)


r = b - A*x
S * [r/c; x] = [b; 0]

The optimum value of the residual scaling factor c, involves min(svd(A)) and norm(r), which are usually too expensive to compute.

S = spaugment(A) without a specified value of c, uses max(max(abs(A)))/1000.


In previous versions of MATLAB®, the augmented matrix was used by sparse linear equation solvers, \ and /, for nonsquare problems. Now, MATLAB calculates a least-squares solution using the qr factorization of A.

See Also

Introduced before R2006a