Wednesday, November 18, 2009

Write a program to perform 2-Dimensional Linear Convolution

CODE:


clc
clear all
close all
x=[1 2;3 4];
h=[5 6;7 8];

y=conv2(x,h);
disp(y)
subplot(3,1,1);plot(x);title('Input Sequence');
subplot(3,1,2);plot(h);title('Impulse Response');
subplot(3,1,3);plot(y);title('Output Sequence');

No comments:

Post a Comment