Example: Input as a Matrix
The following examples demonstrate different inputs and outputs that can be used with advanced controls.
All the examples below are based on the following matrix:
Click to copy this expression
Input as a Matrix
In this example, a matrix is the input. The control retrieves and presents the largest number from the matrix.
JScript
Click to copy this expression
Click to copy this expression
VBscript
Click to copy this expression
Click to copy this expression
Python
Click to copy this expression
Click to copy this expression
Input as a Matrix with Multiple Outputs
You can retrieve multiple values from the input matrix. The following button returns both the smallest and the largest values on the matrix:
JScript
Click to copy this expression
Click to copy this expression
Click to copy this expression
VBscript
Click to copy this expression
Click to copy this expression
Click to copy this expression
Python
Click to copy this expression
Click to copy this expression
Click to copy this expression
Output as a Matrix
You can create a control in which both the input and output are matrices. The following script performs the transpose operation, in which the rows and columns of the original matrix are interchanged.
JScript
Click to copy this expression
Click to copy this expression
VBscript
Click to copy this expression
Click to copy this expression
Python
Click to copy this expression
Click to copy this expression
* 
To transpose a matrix, you can also use the transpose operator in the Matrices/Tables > Vector/Matrix Operators menu.
Was this helpful?