- Scilab help
- Linear Algebra
- aff2ab
- balanc
- bdiag
- chfact
- chol
- chsolve
- classmarkov
- cmb_lin
- coff
- colcomp
- companion
- cond
- det
- eigenmarkov
- ereduc
- expm
- fstair
- fullrf
- fullrfk
- genmarkov
- givens
- glever
- gschur
- gspec
- hess
- householder
- im_inv
- inv
- kernel
- kroneck
- linsolve
- lsq
- lu
- lyap
- nlev
- orth
- pbig
- pencan
- penlaur
- pinv
- polar
- proj
- projspec
- psmall
- qr
- quaskro
- randpencil
- range
- rank
- rankqr
- rcond
- rowcomp
- rowshuff
- rref
- schur
- spaninter
- spanplus
- spantwo
- spec
- sqroot
- squeeze
- sva
- svd
- sylv
- trace
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function
svd
singular value decomposition
Calling Sequence
s=svd(X) [U,S,V]=svd(X) [U,S,V]=svd(X,0) (obsolete) [U,S,V]=svd(X,"e") [U,S,V,rk]=svd(X [,tol])
Arguments
- X
a real or complex matrix
- s
real vector (singular values)
- S
real diagonal matrix (singular values)
- U,V
orthogonal or unitary square matrices (singular vectors).
- tol
real number
Description
[U,S,V] = svd(X)
produces a diagonal matrix
S
, of the same dimension as X
and with
nonnegative diagonal elements in decreasing order, and unitary
matrices U
and V
so that X = U*S*V'
.
[U,S,V] = svd(X,0)
produces the "economy
size" decomposition. If X
is m-by-n with m >
n, then only the first n columns of U
are computed
and S
is n-by-n.
s = svd(X)
by itself, returns a vector s
containing the singular values.
[U,S,V,rk]=svd(X,tol)
gives in addition rk
, the numerical rank of X
i.e. the number of
singular values larger than tol
.
The default value of tol
is the same as in rank
.
See Also
Used Functions
svd decompositions are based on the Lapack routines DGESVD for real matrices and ZGESVD for the complex case.
<< sva | Linear Algebra | sylv >> |