%% Polynomial Multiplication via Convolution
% Create vectors u and v containing the coefficients of the polynomials x^2+1 and 2x+7.

u = [1 0 1];
v = [2 7];

%
% Use convolution to multiply the polynomials.

w = conv(u,v)

% w contains the polynomial coefficients for 2x^3+7x^2+2x+7.
% Copyright 2015 The MathWorks, Inc.