You are on page 1of 1

clear all;

i=-5:5;
a=[zeros(1,5),1,zeros(1,5)]%zero padding for delta fn
subplot(2,2,1)
stem(i,a,'k');
title('Delta fn');
j=0:0.01:1;
b=cos(2*pi*3*j)%cosine Plot
subplot(2,2,2);
stem(j,b,'k');
title('Cosine fn');
i=-5:5
c=[zeros(1,5),ones(1,6)] %padding for impulse function
subplot(2,2,3)
stem(i,c,'k');
title('Unit Impulse fn');
i=0:0.5:5;
y=i;
subplot(2,2,4)
stem(i,y,'k');%Ramp fn
title('Ramp fn');
jihmsp

You might also like