Sie sind auf Seite 1von 1

% CIRCULAR CONVOLUTION%

x=input('sequence 1')
h=input('sequence 2')
l1=length(x)
l2=length(h)
L=max(l1,l2)
if l1~= l2
x=[x,zeros(L-l1)]
h=[h,zeros(L-l2)]
end
y=cconv(x,h,L)
plot(y)
%sequence 1=[1 2 3 4 5]
%sequence 2=[1 2 1 2]

Das könnte Ihnen auch gefallen