| Mu Analysis and Synthesis Toolbox | ![]() |
Perform element-by-element operations on CONSTANT and VARYING matrices
Syntax
matout = vabs(matin) matout = vimag(matin) matout = vreal(matin) matout = vfloor(matin) matout = vceil(matin)
Description
This set of commands allows standard element-by-element operations on CONSTANT/VARYING matrices. These commands are identical to abs, imag, real, floor, and ceil but also work on VARYING matrices.
vebe, allows all standard arithmetic MATLAB element commands that have only one input argument.
Examples
Construct a complex VARYING matrix and find the magnitude of the entries and the real parts.
see(matin)
1 row 2 columns
iv = .2
0.2190 - 0.4379i0.6789 - 1.3577i
iv = .7
0.0470 - 0.0941i0.6793 - 1.3586i
see(vabs(matin))
1 row 2 columns
iv = .2
0iv = .7
0.10521.5190
see(vreal(matin))
1 row2 columns
iv = .2
0.21900.6789
iv = .7
0.04700.6793
Use pkvnorm to find the maximum element magnitude of the VARYING matrix.
This agrees with the maximum magnitude ofpkvnorm(matin,inf) 1 row2 columns ans = 1.5190
matin(1,1) associated with the second independent variable.
See Also
vdet, vdiag, vebe, veval
![]() | unum, xnum, ynum | vdet, vdiag, vexpm, vrcond | ![]() |