OmlExpression
The output of this block is obtained by evaluating the OML expression specified as a block parameter. The expression is evaluated at run time by the OML interpreter. The variable names u1,...un designate the block inputs in this expression (ui designates the ith input value; u may be used in place of u1). The expression may contain parameters defined in the contexts of the diagram, and functions and parameters defined in the OML environment when the model is simulated. Note that functions and parameters named u, u1, u2,..., will be shadowed by the input variables.
Library
MathOperations
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nin | Number of inputs | Number | ||
work | Workspace Evaluation | |||
exx | OML expression | String | ||
outsz | Output size | Vector of size 2 | ||
outtp | Complex output | Number | 0 | |
externalActivation | External activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | input | nin | |
Port 3 | activation | input | externalActivation |