2
PROGRAM:-3 AIM: Program for the generation of unit impulse signal. TOOLS REQUIRED: P.C , matlab 7.0 PROGRAM: t=-2:1:2; >> y=[zeros(1,2),ones(1,1),zeros(1,2)]; >> stem(t,y); >> ylabel('amplitude'); >>xlabel(‘n’) OBSERVATION: RESULT: Desired waveform has been obtained. PRECAUTION:

Step impulse

Embed Size (px)

Citation preview

Page 1: Step impulse

PROGRAM:-3AIM:Program for the generation of unit impulse signal.

TOOLS REQUIRED:P.C , matlab 7.0

PROGRAM:t=-2:1:2;>> y=[zeros(1,2),ones(1,1),zeros(1,2)];>> stem(t,y);>> ylabel('amplitude');>>xlabel(‘n’)

OBSERVATION:

RESULT:Desired waveform has been obtained.

PRECAUTION:1. Observe the waveform carefully.2. Take the value of constant keeping care of all constraint.