Professional Documents
Culture Documents
EC 355:digital Signal Processing Laboratory: Generating Signals Using Matlab Simulator
EC 355:digital Signal Processing Laboratory: Generating Signals Using Matlab Simulator
Submitted by :
SHOAIB WARJRI
B19EC004
Faculty in-charge
Dr. Ch V Rama Rao.
in partial fulfilment of the degree of
Bachelor of Technology in
Electronics and Communication Engineering
Simulation code:
clc;
clear
close all;
m = 3;
N = 10;
h = zeros(N, 1);
h(m+4) = -1;
h(m-2) = 2;
figure();
stem((1:N)-m, h);
xlim([-5 5]);
n1 = 0:1:50;
x1 = cos(0.04*pi*n1);
figure();
stem(n1,x1);
n2 = (-10:9);
x2 = [5,4,3,2,1,5,4,3,2,1,5,4,3,2,1,5,4,3,2,1];
figure();
stem(n2,x2);
n3 = 0:20;
x3 = n3.*(heaviside(n3)-heaviside(n3-10)) + 10*exp((-0.3) *(n3-
10)).*(heaviside(n3-10)-heaviside(n3-20));
figure();
stem(n3,x3);
Obtained Graph:
1.
2.
3.
4.
Inference: Thus, all the signals is generated in the Software called MATLAB and is
verified with the expected graphs of the signals as given above.