| Mu Analysis and Synthesis Toolbox | ![]() |
Calculate determinant, diagonal, matrix exponential and estimate of condition number of a CONSTANT or VARYING matrix
Syntax
out = vdet(matin) out = vdiag(matin) out = vexpm(matin) out = vrcond(matin)
Description
These commands operate on square, CONSTANT and VARYING matrices and they are identical to the MATLAB commands det, diag, exp, and rcond on CONSTANT matrices.
vdet of a square, VARYING matrix, returns matout, which is a VARYING matin at each independent variable value.
vdiag of a square, VARYING matrix, returns matout, which is a VARYING matrix of size min(size(matin)) x 1, containing the diagonal elements of matin at each independent variable.
vexpm of a square, VARYING matrix, returns matout, which is a VARYING matrix of the same size as matin, containing the matrix exponential of matin. The MATLAB command expm, which is called, uses a Pade expansion after scaling matin to calculate the exponential.
vrcond of a square, VARYING matrix, returns matout, which is an estimate of the condition number of a matrix.
Examples
vdet and vrcond work similarly to their MATLAB counterparts, det and rcond, but on square VARYING matrices as shown below.
see(matin)
2 rows 2 columns
iv = 2.3
0.04750.3282
0.73610.6326
iv = 5.6
0.75640.3653
0.99100.2470
matout = vdet(matin);
see(matout)
1 row 1 column
iv = 2.3
-0.2116
iv = 5.6
-0.1752
see(vrcond(matin))
1 row 1 column
iv = 2.3
0.1907
iv = 5.6
0.0848
See Also
det, diag, expm, rcond
![]() | vabs, vimag, vreal, vfloor, vceil | vebe | ![]() |