svd
- :
s =svd(A)¶ - :
[U, S, V] =svd(A)¶ - :
[…] =svd(A, "econ")¶ - :
[…] =svd(A, 0)¶ - :
[…] =svd(…, "vector")¶ Compute the singular value decomposition of A.
With one output the singular values are returned in descending order as a column vector. With three outputs,
A = U*S*V'where U and V are unitary and S is diagonal with the singular values.The option
"econ"returns the economy-size factors; the numeric option0does so only for tall matrices. The option"vector"returns S as a column vector and"matrix"(the default) as a matrix. Matrices containingInforNaNpropagate those values (MATLAB R2026a).