Embed presentation
Download to read offline
![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:
1. Observe the waveform carefully.
2. Take the value of constant keeping care of all constraint.](https://image.slidesharecdn.com/stepimpulse-111002085455-phpapp01/85/Step-impulse-1-320.jpg)

This Matlab program generates a unit impulse signal by creating an array with zeros except for a 1 in the middle index, plots the signal on a stem plot with time labels on the x-axis and amplitude labels on the y-axis, and confirms that the desired waveform was obtained with a single impulse. The document provides instructions on running the program in Matlab to generate a unit impulse signal and observes the result.
![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:
1. Observe the waveform carefully.
2. Take the value of constant keeping care of all constraint.](https://image.slidesharecdn.com/stepimpulse-111002085455-phpapp01/85/Step-impulse-1-320.jpg)