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

TypeNameDefaultDescription
Integernin (from MISO)1Number of inputs
Real[nin]kones(nin)Optional: sum coefficients

Connectors

TypeNameDefaultDescription
RealInput[nin]u (from MISO)Connector of Real input signals
RealOutputy (from MISO)Connector of Real output signal