NGMV Control Toolbox Previous page   Next Page
add

Continuous-time polynomial addition

Syntax

Description

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

Example

To perform the addition  where  and , type:

p = [1 2]; q = [3 4 0];

r = add(p,q)

r =

     3     5     2

See Also

addz


Previous page  Functions -- Alphabetical List   addz Next page