PLECS 3.4 Online Help

Sum

Purpose

Add and subtract input signals

Library

Control / Math

Description

pict
pict

The Sum block adds or subtracts input signals. In case of a single input, all elements of the input vector are summed or subtracted. Vectorized input signals of the same width are added or subtracted element wise and result in a vectorized output signal. If vectorized and scalar input signals are mixed, the scalar input signals are expanded to the width of the vectorized input signals.

Parameters

Icon shape
Specifies whether the block is drawn with a round or a rectangular shape. Round shape icons permit a maximum of three inputs.
List of signs or number of inputs
The inputs can be specified either with
∙   a string containing + or - for each input and | for spacers, or
∙   a positive integer declaring the number of summands.

Probe Signals

Input i   
The i  th input signal.
Output
The block output signal.