15.3. Operations on Discrete-Time Signals

The various operations that can be performed on discrete-time signals are given as

15.3.1. Addition

For discrete-time signals, the addition is done by adding sample by sample. In general form, it is given as

z(n) = x1(n) + x2(n)

where

x1(n) and x2(n) are two signals to be added and

z(n) is the resultant output signal.

In MATLAB, for addition of discrete-time signals, it is necessary that the sequences should be of equal lengths.

If signals are of unequal lengths or if the sample positions are different for equal length sequences, then simple addition using ‘+’ operator is not possible. Hence, signals x1(n) and x2(n) need to be modified so that they have same ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.