Demux
Given a vector valued input, this block splits inputs over vector valued outputs.
Library
Routing
Description
The Demux block splits an input vector signal into a given number of output signals. The number of outputs can be set by the "Number Of Outputs" parameter. The input signal is required to be a column vector. For each output input, its dimension is configured in the table "Output Ports Sizes", the value in ith table entry corresponds to the ith output signal. It's possible to specify port sizes using negative values, which indicates the input signal dimension is determined by diagram compiler automatically. For example the input is 3x1 vector, "Output Ports Sizes" are -1, 1, the two output signals are of size 2x1, 1x1. If the the input is 4x1 vector, "Output Ports Sizes" are -1, -1, the two output signals have the same size 2x2.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nout | Number of outputs | Specify the number of output signals to be splitted. | Number | |
outports | Output ports sizes | Specify the dimension of each output signal. | Structure | |
outports/size | Vector sizes | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | nout | |
Port 2 | explicit | input | 1 |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |