Problem: Given 2 sequences \(x_{1}[n]\) and \(x_{2}[m]\), determine the circular convolution of the 2 sequences.
Matlab clear all; close all; x1=[2 1 2 1]; x2=[1 2 3 4]; X1=fft(x1); X2=fft(x2); y=real(ifft(X1.*X2))
|
y = 14 16 14 16 |
Matlab x1=[1 2 3 4 5]; x2=[4 5 6]; N=max(length(x1),length(x2)); X1=fft(x1,N); X2=fft(x2,N); y=real(ifft(X1.*X2))
|
y = 53 43 28 43 58 |