ScalarExpand
This block converts a scalar input into a matrix output whose entries are all equal to the input scalar.
Library
Activate/SignalConversions
Description
The ScalarExpand block converts a scalar value into a matrix of identical elements.
The inputs are expanded into a matrix of identical elements whose dimensions are equal to the dimension specified in the block parameters.
All types supported by Twin Activate are allowed as input to this block.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nout | Size of output ([-1,-2] if unknown) | Dimensions of the output matrix. These dimensions are provided when known. Otherwise, [-1,-2] can be used and Twin Activate will compute the appropriate dimensions. | Vector of size 2 | |
externalActivation | External activation | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |