4.7. Polynomial Division

Generally, deconv function is used to deconvolve two vectors. In case vectors are coefficients of two polynomials, then function deconv gives polynomial division and it returns the quotient as well as remainder. The syntax is given as

[x, r] = deconv(z, y)

where

z is the dividend vector,

y is the divisor vector,

x specifies the vector of quotients obtained, and

r specifies the vector of remainders obtained.

Example 4.8.

Divide the polynomial z by y where z = s3 + 6s2 + 16s + 16 and y = s2 + 4s + 8.

Solution:

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

z = [1 6 16 16];
y = [1 4 8];

The command used for division is

[x, r] = deconv (z, y)

The resultant polynomial x and remainder r obtained are

x = 1 2 r ...

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.