Unit impulse using MATLAB

MATLAB Code:
%unit impulse
n=-10:20 ;
us=[zeros(1,10) ones(1,21)];
subplot(3,1,1);
stem(n,us);
title('unit step')
axis([-10 20 0 1.2]);
delayed unit step




MATLAB Code:

%delayed unit impulse
n=-10:20;
usd=[zeros(1,15) ones(1,16)];
subplot(3,1,2);
stem(n,usd);
title('delayed unit step')
axis([-10 20 0 1.2]);






MATLAB Code:

%advanced unit step
n=-10:20 ;
usa=[zeros(1,3) ones(1,28)];
subplot(3,1,3);
stem(n,usa);
title('advanced unit step ')axis([-10 20 0 1.2]);






2 comments:

Unknown said...

Thank's for Your tutorials

Very nice and usefull:D

jacquisvalcourt said...

Slots by RNG Gaming - Mapyro
Slots 안양 출장마사지 by RNG Gaming. 전라북도 출장안마 Sort by. RNG gaming 강릉 출장샵 is a casino gambling and gaming entertainment destination in North 전주 출장샵 America. 김천 출장안마 It's a full service casino

Post a Comment