DSP matlab Program to find the Convolution of two sequence

CONVOLUTION


 


 

a=input('enter the first sequence=')

b=input('enter the second sequence=')

f=conv(a,b)

subplot(2,2,1)

stem(a)

xlabel('time index')

ylabel('amplitude')

subplot(2,2,2)

stem(b)

xlabel('time index')

ylabel('amplitude')

subplot(2,1,2)

stem(f)

xlabel('time index')

ylabel('amplitude')

title('linear convolution of two sequence')


 


 


 


 


 


 


 

Observation:


 

enter the first sequence=[1,2,3,4]

a = 1 2 3 4


 

enter the second sequence=[1,4,3,5]

b = 1 4 3 5


 

f = 1 6 14 27 35 27 20


 


 

0 comments: