Problem: Given 2 sequences \(x_{1}[n]\) and \(x_{2}[m]\), determine the linear convolution of the 2 sequences. Assume \(x_{1}=[1,2,3,4,5]\) and \(x_{2}=[3,4,5]\).
Mathematica Clear ["Global`*"] x1 = {1, 2, 3, 4, 5}; x2 = {4, 5, 6}; ListConvolve[x2, x1, {1, -1}, 0]
|
{4, 13, 28, 43, 58, 49, 30} |