Beruflich Dokumente
Kultur Dokumente
RATING
Laboratory Experiment No. 03
Theory:
A discrete signal or discrete-time signal is a time series consisting of a sequence of qualities. In other words, it is a
type series that is a function over a domain of discrete integral.
Unlike a continuous-time signal, a discrete-time signal is 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 is a sequence corresponding 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
separate data item.
MATLAB CODE:
Exercise:
1. Write a comment which gives a brief description of the command beside each line of the program.
2. If you would alter the value of f or T, what would happen to your signal?
-The signal’s graphical representation would either become finer or coarser, and
the number of cycle may increase/decrease according to the graph it shown after
you input the change of codes.
Theory:
Aliasing is the phenomenon that results in a loss of information when a signal is reconstructed from its sampled
signal.
In Principle, the analogue can be reconstructed from the samples, provided that the sampling rate is sufficiently high
to avoid the problem called “Aliasing”.
Sinc
Syntax
y = sinc(x)
Description
sinc computes the sinc function of an input vector or array, where the sinc function is
This function is the continuous inverse Fourier transform of the rectangular pulse of width 2π and height 1.
y = sinc(x) returns an array y the same size as x, whose elements are the sinc function of the elements of x.
The space of functions bandlimited in the frequency range is spanned by the infinite (yet countable) set of sinc
functions shifted by integers. Thus any such bandlimited function g(t) can be reconstructed from its samples at
integer spacings.
EXAMPLE:
n =(0:T:20)';
xs =2*sin(2*pi*f*n);
t = linspace(0,20,1200)';
ya = sinc((1/T)*t(:,ones(size(n))) -(1/T)*n(:,ones(size(t)))')*xs;
plot(n, xs,'o',t,ya);grid;
xlabel('Time, msec');
ylabel('Amplitude');
title('Reconstructed Continuous Time Signal y_{a}(t)');
axis([0 20 -5 5]);
Exercise: