This function draws an rgl scene consisting of a representation of the identity matrix and a
3 x 3 matrix A, together with the corresponding representation of the
matrices U, D, and V in the SVD decomposition,
A = U D V'.
Usage
svdDemo(A, shape =c("cube", "sphere"), alpha =0.7, col =rainbow(6))
Arguments
A
A 3 x 3 numeric matrix
shape
Basic shape used to represent the identity matrix: "cube" or "sphere"
alpha
transparency value used to draw the shape
col
Vector of 6 colors for the faces of the basic cube