The various operations that can be performed on discrete-time signals are given as
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)
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 ...