1、帮助文档
svd
Singular value decomposition
Syntax
s = svd(X)
[U,S,V] = svd(X)
[U,S,V] = svd(X,0)
[U,S,V] = svd(X,'econ')
Description
The svd command computes the matrix singularvalue decomposition.
s = svd(X) returns a vectorof singular values.
[U,S,V] = svd(X) producesa diagonal matrix S of the same dimension as X,with nonnegative diagonal elements in decreasing order, and unitarymatrices U and V so that X= U*S*V'.
[U,S,V] = svd(X,0) producesthe "economy size" decomposition. If X ism-by-n with m > n, then svd computes onlythe first n columns of U and S isn-by-n.
[U,S,V] = svd(X,'econ') also produces the"economy size" decomposition. If X ism-by-n with m >= n, it is equivalent to svd(X,0).For m < n, only the first m columns of V arecomputed and S is m-by-m.