AIM: - To represent basic signals (Unit Step, unit impulse, ramp, exponential, sine, and cosine)
PROGRAMS: -
Unit Impulse: -
% Program for the generation of unit impulse signal
clc;
clear all;
close all;
t = -2:1:2;
y=[zeros(1,2),ones(1,1),zeros(1,2)];
subplot (2,2,1);
stem (t,y);
ylabel ('Amplitude-->');
xlabel ('(a)n-->');
OUTPUT
No comments:
Post a Comment