Professional Documents
Culture Documents
Lab 3
Lab 3
Lab 3
Description:
What is a signal ?
A flow of information.
(Mathematically represented as) a function of independent variables such as time (e.g.
speech signal), position (e.g. image), etc.
A common convention is to refer to the independent variable as time, although may in
fact not.
Example signals
Signal Processing
Modifying and analyzing information
Representation, transformation and manipulation of signals and information they contain
1
amplitude
-1
-2
-3
-4
0 1 2 3 4 5 6 7 8 9 10
n(sample number)
4
1.5
0.5
Amplitude
-0.5
-1
-1.5
-2
0 10 20 30 40 50 60 70 80 90 100
Sample Number
6
Digital Signal:
Digital signal is the one which can take countable finite values in range. In MATLAB we can
plot digital signal for example a random bipolar data using stem or plot Commands.
%Digital Signal Example
1.5
0.5
Amplitude
-0.5
-1
-1.5
-2
0 10 20 30 40 50 60 70 80 90 100
Sample Number
7
0.5
Amplitude
-0.5
-1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time 0(pi Units)
8
b) Aperiodic Signals:
The opposite of a periodic signal is an aperiodic signal. An aperiodic function never repeats,
although technically an aperiodic function can be considered like a periodic function
with an infinite period.
In MATLAB we can generate an aperiodic signal using following code:
%Aperiodic Signal Example
10
0.5
Amplitude
-0.5
-1
-10 -8 -6 -4 -2 0 2 4 6 8 10
n (Sample Number)
11
b) Odd Signals:
If x(-n) = -x(n) then signal is called odd signal. Sine function is a n example of odd signal.
12
b) Power Signal:
The signal x(t) is said to be power signal, if and only if the normalized average power p is
finite and non-zero. Practical periodic signals are power signals.
Total power of a signal x(t) is given by:
syms t T
x = t;
P = limit((1/(2))*(int(x^2,t,-1,1)),T, inf)
P = 4/3
For a power signal, energy is always equal to .
E = limit((int(x^2,t,-T,T)),T,inf)
E = Inf
13
Exercise:
Comments: