Sum
Output the sum of the elements of the input vector
Library
Blocks/Math
Description
This blocks computes output y as sum of the elements of the input signal vector u:
y = u[1] + u[2] + ...;
Example:
parameter: nin = 3; results in the following equations: y = u[1] + u[2] + u[3];
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_nin | nin | Number of inputs | Scalar | |
mo_k | k | Optional: sum coefficients | Vector |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of vectors | true | |
mo_u/start | start | Cell of vectors | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signals | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |