NGMV Control Toolbox Previous page   Next Page
addz

Discrete-time polynomial addition

Syntax

Description

Y = addz(X1,X2,...,Xi) finds the sum Y of a number of discrete-time polynomials represented by vectors of coefficients. The shorter vectors are completed with ending zeros and then the ordinary vector addition is performed.

Example

To perform the addition  where  and , type:

p = [1 0.3]; q = [1 –0.7 0.1];

r = addz(p,q)

r =

     2     -0.4     0.1

See Also

add


Previous page   add   adjpol Next page