Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

svd

In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix, with many useful applications in signal processing and statistics.

References

svd(M)

Applications which employ the SVD include computing the pseudoinverse, least squares fitting of data, matrix approximation, and determining the rank, range and null space of a matrix.

Argument M

Matrix

Returns 1. entry

Matrix : The diagonal matrix of singular values (Sigma).

Returns 2. entry

Matrix : The left singular vectors (U).

Returns 3. entry

Matrix : The right singular vectors (V*).

Example

svd([1, 0, 0, 0, 2; 0, 0, 3, 0, 0; 0, 0, 0, 0, 0; 0, 4, 0, 0, 0])

Computes the matrices Sigma (singular values), U (left-singular vectors) and V* (right-singular vectors) of the matrix.

Example

[S, U, V] = svd([1, 0, 0, 0, 2; 0, 0, 3, 0, 0; 0, 0, 0, 0, 0; 0, 4, 0, 0, 0])

Computes the matrices Sigma, U and V* and stores them in the matrices S, U, V.

Clone this wiki locally