myasir786
Newbie level 6
n=-10:10;
x=((1/3).^(-n)).*((-n-1)>=0);
h=((n-1)>=0);
subplot(3,1,1);
stem(n,x);
title('x');
subplot(3,1,2);
stem(n,h);
title('h');
c=conv(h,x);
m=0:length(c)-1;
subplot(3,1,3);
stem(m,c);
title('conv');
what is the problem with this program it is showing first two graph correctly but it is not showing 3rd one...
x=((1/3).^(-n)).*((-n-1)>=0);
h=((n-1)>=0);
subplot(3,1,1);
stem(n,x);
title('x');
subplot(3,1,2);
stem(n,h);
title('h');
c=conv(h,x);
m=0:length(c)-1;
subplot(3,1,3);
stem(m,c);
title('conv');
what is the problem with this program it is showing first two graph correctly but it is not showing 3rd one...