blockSum
Output the sum of the elements of the input vector
Extends from Interfaces.MISO (Multiple Input Single Output continuous control block).
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nin (from MISO) | 1 | Number of inputs |
| Real[nin] | k | ones(nin) | Optional: sum coefficients |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput[nin] | u (from MISO) | Connector of Real input signals | |
| RealOutput | y (from MISO) | Connector of Real output signal |