svd
Singular Value Decomposition.
📝 Syntax
s = svd(M)
[U, S, V] = svd(M)
[U, S, V] = svd(M, 0)
[U, S, V] = svd(M, 'econ')
📥 Input argument
M - a numeric value: matrix (double or single)
📤 Output argument
s - real vector (singular values) by descending order.
U - left singular values.
S - real diagonal matrix (singular values)
V - right singular values.
📄 Description
svd computes the Singular Value Decomposition of a matrix.
For an
matrix M, the SVD is:
where:
is an
unitary matrix (left singular vectors)
is an
diagonal matrix with non-negative real numbers (singular values)
is an
unitary matrix (right singular vectors)
The singular values
are arranged in decreasing order:
💡 Example
X = eye(3, 3);
s = svd(X)
[U, S, V] = svd(X)🔗 See also
eig.
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?