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.

    OmlExpression

Library

Activate/MathOperations

Parameters

OmlExpression_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Number of block inputs.

Number

work

Workspace Evaluation

exx

OML expression

OML expression that should be evaluated.

String

outsz

Output size

Size of the output in a matrix shape.

Vector of size 2

outtp

Complex output

Allows output to be of complex form, with real and imaginary parts.

Number

0
1

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

explicit

input

nin

Port 3

activation

input

externalActivation