svd
Singular value decomposition of symbolic matrix
Syntax
Description
[
returns numeric unitary
matrices U
,S
,V
]
= svd(A
)U
and V
with
the columns containing the singular vectors, and a diagonal
matrix S
containing the singular values.
The matrices satisfy the condition A =
U*S*V'
, where V'
is the
Hermitian transpose (the complex conjugate transpose) of
V
. The singular vector
computation uses variable-precision arithmetic.
svd
does not compute symbolic
singular vectors. Therefore, the input matrix
A
must be convertible to
floating-point numbers. For example, it can be a matrix of
symbolic numbers.
[___] = svd(___,
returns the singular values in the form specified by
outputForm
)outputForm
using any of the input
or output arguments in previous syntaxes. Specify
outputForm
as
'vector'
to return the singular
values as a column vector or as 'matrix'
to return the singular values as a diagonal matrix.
Examples
Input Arguments
Output Arguments
Tips
The second arguments
0
and'econ'
only affect the shape of the returned matrices. These arguments do not affect the performance of the computations.Calling
svd
for numeric matrices that are not symbolic objects invokes the MATLAB®svd
function.Matrix computations involving many symbolic variables can be slow. To increase the computational speed, reduce the number of symbolic variables by substituting the given values for some variables.