Sum

Output the sum of the elements of the input vector

    Sum

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

Sum_0

NameLabelDescriptionData TypeValid Values

mo_nin

nin

Number of inputs

Scalar

mo_k

k

Optional: sum coefficients

Vector

Sum_1

NameLabelDescriptionData TypeValid Values

mo_u

u

u

Structure

mo_u/fixed

fixed

Cell of vectors

true
false

mo_u/start

start

Cell of vectors

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signals

input

1

y

implicit

Connector of Real output signal

output

1