Learn R Programming

PEIP (version 2.2-5)

USV: Singular Value Decomposition

Description

Singular Value Decomposition

Usage

USV(G)

Value

list:

U

Matrix

S

Matrix, singular values

V

Matrix

Arguments

G

Matrix

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

returns matrices U, S, V according to matlab convention.

See Also

svd

Examples

Run this code


 hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") }
     X <- hilbert(9)[,1:6]
     
h = USV(X)

print( h$U )


Run the code above in your browser using DataLab