Google search

Thursday, November 12, 2009


LINEAR CONVOLUTION

PROGRAM:
clc;
x=input('enter the first sequence');
h=input('enter the second sequence');
y=conv(h,x);
figure;
subplot(3,1,1);
stem(x);
ylabel('amplitude-->');
xlabel('a(n)-->');
subplot(3,1,2);
stem(h);
ylabel('amplitude-->');
xlabel('b(n)-->');
subplot(3,1,3);
stem(y);
ylabel('amplitude-->');
xlabel('c(n)-->');
disp('the resultant signal is');y

No comments:

Post a Comment