Convolution

Polynomial multiplication and division correspond to the operations convolution and deconvolution. The functions conv and deconv implement these operations.

Consider the polynomials a(s) = s2 + 2s + 3 and b(s) = 4s2 + 5s + 6. To compute their product,

a = [1 2 3]; b = [4 5 6];
c = conv(a,b)

c =
     4    13    28    27    18

Use deconvolution to divide a(s) back out of the product:

[q,r] = deconv(c,a)

q =
     4     5     6

r =
     0     0     0     0     0
Was this topic helpful?