image thumbnail

linear convolution

by

 

26 Jul 2006 (Updated )

rectangular wave form creation

lcn.m
clc;
clear all;
close all;

x=input('enter the 1st sequence');
h=input('enter the 2st sequence');
y=conv(x,h);

figure;subplot(3,1,1);
stem(x);ylable('amplitude--->');
xlable('(a) n--->');

subplot(3,1,2);
stem(x);ylable('amplitude--->');
xlable('(b) n--->');


subplot(3,1,3);
stem(x);ylable('amplitude--->');
xlable('(c) n--->');

disp('the resultant signal is');y


Contact us