MTM[svd] - compute the singular values of a matrix
|
Calling Sequence
|
|
S = svd(A)
[U,S,V] = svd(A)
|
|
Parameters
|
|
A
|
-
|
matrix, vector, array, or scalar
|
|
|
|
|
Description
|
|
•
|
The function svd(A) computes the singular values and left and right singular vectors of matrix A.
|
•
|
When the function is called using the form S = svd(A), the returned value of S is a column vector containing the singular values of A.
|
•
|
When the function is called using the form U,S,V := svd(A), the returned value of U is a matrix whose columns are the left singular vectors of A. The returned value of S is a column vector containing the singular values of A. The returned value of V is a matrix whose columns are the right singular vectors of A.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
![U, S, V := Matrix([[-.241424496932006, -.376449481711859, -.894427190999916], [-.482848993864012, -.752898963423719, .447213595499958], [-.841766631202282, .539841586573655, -0.315964496254882e-16]]), Matrix([[9.81053809097800, 0, 0], [0, 1.65931985026082, 0], [0, 0, 0.329629655349925e-15]]), Matrix([[-.294648032580691, -.483670604727494, -.824163383692134], [-.932505223882814, .334015093825057, .137360563948689], [-.208845742900333, -.809009680547506, .549442255794756]])](/support/helpjp/helpview.aspx?si=7693/file04882/math105.png)
| (3) |
|
|