[U,S,V] = svd(X)s = svd(X)[U,S,V] = svd(X,0)
svd computes the matrix singular value decomposition.
[U,S,V] = svd(X) produces a diagonal matrix S of the same dimension as X, with nonnegative diagonal elements in decreasing order, and unitary matrices U and V so that X = U*S*V'.
s = svd(X) returns a vector containing the singular values.
[U,S,V] = svd(X,0) produces the economy size decomposition. If X is m-by-n with m > n, then svd computes only the first n columns of U and S is n-by-n.
the statementX =1 23 45 67 8
[U,S,V] = svd(X)
produces
The economy size decomposition generated byU =0.1525 0.8226 -0.3945 -0.38000.3499 0.4214 0.2428 0.80070.5474 0.0201 0.6979 -0.46140.7448 -0.3812 -0.5462 0.0407S =14.2691 00 0.62680 00 0V =0.6414 -0.76720.7672 0.6414
[U,S,V] = svd(X,0)
produces
U =0.1525 0.82260.3499 0.42140.5474 0.02010.7448 -0.3812S =14.2691 00 0.6268V =0.6414 -0.76720.7672 0.6414
svd uses the LINPACK routine ZSVDC.
Solution will not converge.
(c) Copyright 1994 by The MathWorks, Inc.