| Mu Analysis and Synthesis Toolbox | ![]() |
Perform element-by-element operations on CONSTANT and VARYING matrices
Syntax
Description
The vebe function allows any single argument MATLAB element-by-element arithmetic command to operate on a VARYING matrix. The first input argument, oper, is the character string defining the MATLAB element-by-element command and matin is the VARYING matrix on which the command is applied. vebe calls the MATLAB eval command to execute the string command. Some standard MATLAB comands compatible with vebe are sin, abs, real, imag, and gamma.
Examples
In this example of vebe, the real part of a matrix is found along with gamma of each matrix element.
see(matin) 3 rows 3 columns iv = 4.2 1.0000 + 2.0000i 1.0000 + 2.0000i 1.0000 + 2.0000i 2.0000 + 4.0000i 2.0000 + 4.0000i 2.0000 + 4.0000i 3.0000 + 6.0000i 3.0000 + 6.0000i 3.0000 + 6.0000i iv = 11.01 4.0000 + 8.0000i 4.0000 + 8.0000i 4.0000 + 8.0000i 5.0000 + 10.0000i 5.0000 + 10.0000i 5.0000 + 10.0000i 6.0000 + 12.0000i 6.0000 + 12.0000i 6.0000 + 12.0000imatout=vebe('real',matin); see(matout) 3 rows 3 columns iv = 4.2 1 1 1 2 2 2 3 3 3 iv = 11.01 4 4 4 5 5 5 6 6 6 see (vebe ('gamma ', matin)) 3 rows 3 columns iv = 4.2 1 1 1 1 1 1 2 2 2 iv = 11.01 6 6 6 24 24 24 120 120 120
See Also
eval, vabs, vceil, veval, vfloor, vimag, vreal
![]() | vdet, vdiag, vexpm, vrcond | veig | ![]() |