0% found this document useful (0 votes)
8 views

SNS Experiment3

Uploaded by

saa.ahmed973
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

SNS Experiment3

Uploaded by

saa.ahmed973
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Experiment – 3

Aim- Introduction to Discrete time signals.


Theory- A discrete signal or discrete-time signal is a
time series consisting of a sequence of quantities. In
other words, it is a time series that is a function over a
domain of integers. Unlike a continuous-time signal, a
discrete-time signal is not a function of a continuous
argument; however, it may have been obtained by
sampling from a continuous-time signal, and then each
value in the sequence is called a sample. When a
discrete-time signal obtained by sampling a sequence
corresponds to uniformly spaced times, it has an
associated sampling rate; the sampling rate is not
apparent in the data sequence, and so needs to be
associated as a characteristic unit of the system.
In lab exercise-
Q1.
a) Unit Impulse function, x1 (n) = δ (n)

Saad Ahmed
23102144
Saad Ahmed
23102144
Q2

POST LAB EXERCISE- Q1

Saad Ahmed
23102144
Saad Ahmed
23102144
%Q3
N = 50;
sig1 = randn(1, N);
sig2 = 0.2 + randn(1, N);
figure;
subplot(2,1,1);
stem(1:N, sig1);
title('Discrete-Time Signal sig1(23102144)');
xlabel('n');
ylabel('sig1[n]');
grid on;
subplot(2,1,2);
stem(1:N, sig2);
title('Discrete-Time Signal sig2(23102144)');
xlabel('n');
ylabel('sig2[n]');
grid on;
ave1 = cumsum(sig1) ./ (1:N);
ave2 = cumsum(sig2) ./ (1:N);
figure;
stem(1:N, ave1 ); hold on;
stem(1:N, ave2 );
title('Running Averages ave1(n) and ave2(n)
(23102144)');
xlabel('n');
ylabel('Average Value');
legend('ave1[n]', 'ave2[n]');
grid on;

Learning Outcomes:
1) We can understand the generation of discrete time
signals.
2) We can visualize the discrete time signal in MATLAB.
3) We got to learn new tools on MATLAB.

Saad Ahmed
23102144

You might also like