4.6. Polynomial Multiplication

The product of the two polynomials is obtained by convolution operation of their coefficients using the MATLAB function conv. The syntax is given as follows:

conv(x, y)

or

z=conv(x,y)

where

x and y are the vectors of coefficients of polynomials to be multiplied, and

z contains the coefficients of the resultant polynomial.

Example 4.6.

Evaluate the product of two polynomials (s + 2) and (s2 + 4s + 8).

Solution:

The polynomials are represented by the two vectors x and y:

x = [1 2];
y = [1 4 8];

To evaluate the product, the following command is used:

z = conv(x, y)

The vector z obtained is

z =
    1   6   16   16

Thus, the product of the two given polynomials x and y is given by the polynomial z, i.e., z = s3 + 6s2 + 16 ...

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.