Tuesday, 15 May 2012

Perform linear and circular convolution of two sequences, [1, 1, 2, 2] and [1, 2, 3, 4].


close all;
clc;


x1=[1,1,2,2];
x2=[1,2,3,4];
x3=zeros(1,4);
for n=1:4
    for m=1:4
        x3(n)=x3(n)+(x1(m)*x2(( mod((n-m),4)+1)));
        
    end;
end;


x3


x4=conv(x1,x2)

0 comments

 
© 2011-2012 ProgrammingBlue
Posts RSS Comments RSS
Back to top