I am trying to find the coefficients of multiplications of 2 $N$-variate polynomials using $N$-dimensional fast Fourier transform (FFT) on MATLAB.
My approach so far is as follows: Based on this post, I learned to do it for the multiplication of 2 1-dimensional polynomials. It is simply
y1 = [1 0 0 0];
y2 = [0 2 0 0];
ifft(fft(y1).*fft(y2));
for $y_1=1$ and $y_2=2x$, whereby $x$ is the input.
How about when it is multivariate, say $y_1=1+2x_1$ and $y_2=x_1+4{x_1}^2x_2$, whereby $x_1$ and $x_2$ are the inputs? How can I make use of the MATLAB function fftn?