Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Classication of Signals
LEARNING OBJECTIVES
By the end of this chapter, the reader
will be able to:
2.1 Introduction
30
Periodic or Non-periodic
Odd or Even or Neither
Power or Energy
Real or Complex
Continuous Time or Discrete Time
Random or Deterministic
Periodic Signal
2.2.1 Sinusoid
As discussed in Section 1.4, the sinusoid signal includes both sines and cosines.
MATLAB includes the functions cos() and sin() and both expect arguments
in radians rather than degrees, as can be easily shown with an example.
cos(pi / 4)
ans =
0.7071
The st cost has a period of 2 s, as can be seen in Figure 2.1, and generated in MATLAB as:
t = -10 : 0.01 : 10;
a = cos(t);
plot(t, a)
axis([-10 10 -2 2 ])
grid on
31
32
0
Time
10
s(t)
s(t)
Vin
Vout
s(t) 0
s(t)
Vin
Vout
FIGURE 2.2 Ideal diode circuits accomplish a full-wave rectier (top) and half-wave rectier (bottom).
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
33
34
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
10
Square wave
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
35
36
pulse width =2
0:25
period
2
Pulse Train
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
FIGURE 2.7 Pulse TrainA regular series of rectangular pulses. Duty Cycle: 25%, Period: T 2 s.
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
N
X
n N
t nT
37
38
3T
2T
T
2T
3T
FIGURE 2.9 This impulse train is an innite series of impulse functions spaced at regular intervals
Even Signal
ODD
EVEN
EVEN
NEITHER
NEITHER
FIGURE 2.10 Odd or even signals are dened by reection about the origin.
DEFINITION 2.3
Odd Signal
Many signals are neither odd nor even, and the denition of a neither signal is
made here for completeness and in the interest of brevity.
DEFINITION 2.4
Neither Signal
A signal st that is neither odd nor even shall be called a neither signal.
Examples of odd and even signals are shown graphically in Figure 2.10. Many
signals such as rectt 2 or the unit step function in Figure 1.12 are neither signals,
but odd-ness or even-ness is a fundamental property that can be employed to simplify
computations. In particular, much integration can be saved by observing the following theorems that may be proved by inspection:
THEOREM 2.1
k
0
st dt
39
40
k
k
st dt 0
TABLE 2.1
a1 t 3 b2 t a1 t 3 b2 t
b1 t 3 b2 t b1 t 3 b2 t
TABLE 2.2
a1 t b2 t a1 t b2 t
b1 t b2 t b1 t b2 t
EXAMPLE 2.1
cos10t sin13t dt
Solution:
Since the product of even and odd functions is odd, then by inspection and
from Theorem 2.2, ct 0. This example illustrates the value of recognizing
the properties of odd and even signals.
EXAMPLE 2.2
Solution:
The sum of two even signals will give an even result. This is conrmed in
Figure 2.11.
SIGNAL
Amplitude
Phase
Frequency
cos2t
1=
Period
cos3t
3=2
2=3
By inspection, the two cosines have periods and 2=3 s respectively. These
periods would coincide with each other every 2 s, after two periods of the
rst and three periods of the second waveform. The overall period of the
resulting signal g t would be given directly as the Least Common Multiple
(LCM) of the two non-zero cosine periods, as LCM , 2=3 2 s. In
MATLAB, the function lcm(a,b) returns the LCM of the positive integers
a and b. While the signal g t is periodic, its shape only vaguely resembles
either of the component signals, as shown in Figure 2.11.
41
42
a(t)
1
0
1
2
10
8
6
4
2
10
10
10
cos(3t)
b(t)
1
0
1
2
10
3
2
1
0
1
2
10
8
6
4
2
cos(2t) cos(3t)
c(t)
8
6
4
2
Time
FIGURE 2.11 The Sum of Two Cosines ct at bt The overall period is the LCM
of the two periodsPeriod: T 2 s.
2:1
2:2
2:3
As a further memory aid, the exact order and signs required in these identities
can easily be conrmed with a pocket calculator.
EXAMPLE 2.3
In the days of analog television, such a box would be connected to the cable system and to a television
set that remained tuned typically to Channel 3 regardless of the channel being watched.
43
44
VIEWING
CHANNEL N
freq. f0
MIXER
a(t)
cos(2 fN t)
b(t)
cos(2 f0 t)
a(t) b(t)
CHANNEL
SELECT
DIFFERENCE
SUM
fN
Mixing frequency
fm fN f0
Sum
fsum 2 3 fN f0
Difference
fdiff f0
EXAMPLE 2.4
Amplitude
Phase
Frequency
Period
1
2 cost
1/2
1=2
1
2 cos5t
1/2
5=2
2=5
a(t)
1
0
1
2
10
8
6
4
2
10
10
10
cos(3t)
b(t)
1
0
1
2
10
3
2
1
0
1
2
10
8
6
4
2
cos(2t) cos(3t)
c(t)
8
6
4
2
0
Time
FIGURE 2.13 The product of Two Cosines ct at 3 bt The overall period is the LCM
of the two periodsPeriod: T 2 s.
2:4
It is a common error to imagine that the squared sinusoidal signal resembles a full-wave rectied cosine.
45
46
2
1
0
1
2
10
8
6
4
2
10
10
2
1
0
1
2
10
8
6
4
2
0
Time
For the squared sine, use the identity 2 sinx siny cosx y cosx y from
Eqn. 2.3 and let x y, or:
1
sin 2 y 1 cos2y
2
2:5
Consider the signal st A cos2f0 t, and let y 2f0 t, then from Eqn. 2.4,
s t 12 A2 1 cos4f0 t that is strictly positive, even, and has a value of
s 2 0 A2 at the origin (t 5 0). Moreover, the cosine term has double the frequency of the original cosine. The result is shown in Figure 2.14 for A 1 and
f0 1=2 Hz
The appearance of cos2 2f0 t is a raised cosine with double the frequency f0 .
2
EXAMPLE 2.5
Let s(t) 5 3 sin(t) What is the appearance of s2(t)? Sketch s2(t) as a function
of time.
Solution:
This signal s 2 t should be non-negative, even, and have a value of zero at the
origin. Figure 2.15 conrms the observation that squared signals must be
strictly non-negative. An odd signal becomes even when squared.
10
5
0
5
10
10
8
6
4
2
0
Time
10
10
s2(t) = 9 sin2(t)
10
5
0
5
10
10
8
6
4
2
Time
FIGURE 2.15 When the odd signal s(t ) is squared, the result must be both even and non-negative.
Signal Energy
47
48
Signal Power
For some signals, such as st cost , the energy will be innite, while the
average power will be nite. In particular, periodic signals will have innite energy,
since the squared magnitude is positive and this energy integral can only grow to
innity as the signal is dened for all time. Signals can be classied accordingly as:
DEFINITION 2.7
Energy Signal
DEFINITION 2.8
Power Signal
From the above discussion, all power signals will have innite energy. On the
other hand, all energy signals will have zero power (as the term x1 will ensure that this
integral tends to zero as x grows). If a periodic signal is turned on and off, the
resulting st has nite energy. An exponentially decaying signal is another signal
with nite energy. These results are summarized below.
Energy Signal
Power Signal
Energy
nite
innite
Power
zero
nite
T2
T2
s 2 t dt
EXAMPLE 2.6
T2
T2
1
A cos2f0 t dt
T
2
T2
T2
A2 3
1
1 cos4f0 t dt
2
A2
0
2
Since the integral of a cosine over any complete period is zero, only the
constant term remains, leaving:
A2
2
p
A
average power p
2
average power
Vrms
The familiar factor of 0:707A pA2 emerges from this computation. Note that
since this Vrms calculation is performed over a complete period, it would be the
same for any frequency cosine. For a given periodic waveform, Vrms is a function
of amplitude only.
p
Vrms Does not Equal A= 2 for All Periodic Signals The root mean squared
voltage ofpan
arbitrary periodic signal with amplitude A is not always given by
Vrms A= 2 0:707A. This relationship refers specically to a sinusoidal signal
with no DC offset, as computed above. Of course, in a study ofpalternating
current
circuits, waveforms are implicitly sinusoidal, and the factor 1= 2 is often applied
routinely during calculations in power systems or electronics, leading to the
49
50
T0
A
Sinusoid
A
Full-wave
rectified
sinusoid
A
Half-wave
rectified
sinusoid
A
2
A
A
Square wave
A
X A
T0
T0
A
Pulse train
A
Triangle wave
3
A
A
3
Sawtooth
wave
FIGURE 2.16 Vrms for some common periodic signals. Each signal has amplitude A.
common misconception that the result applies to all periodic signals. Worse,
because of this, an inexpensive AC voltmeter may simply scale a reading by this same
factor, assuming a sinusoidally varying input voltage. Only a true rms voltmeter can
give accurate readings for a square wave and other periodic signals; such instruments are generally more expensive than ordinary AC voltmeters. Figure 2.16 shows
the calculated Vrms for various periodic signals, each of amplitude A.
A=
3, independent of period. Therecomplete period. From Figure 2.16, Vp
rms
Decibel
The decibel is dened as a power ratio, so when comparing the Vrms voltages V1
and V2 in two signals s1 t and s2 t , it is assumed that power P1 V12 and P2 V22 to
construct the corresponding ratio:
2
P1
V1
V1
10 log
dB
20 log
10 log
P2
V2
V2
51
52
Power
Voltage
10
110 dB
120 dB
13 dB
16 dB
0 dB
0 dB
1
2
23 dB
26 dB
1
10
210 dB
220 dB
1
100
220 dB
240 dB
1
1000
230 dB
260 dB
(Systems in Series)
A voltage signal st passes through two systems in series, described by at- 0:5 at
then bt-10 bt. What is the overall change in power expressed in dB?
Solution:
The voltage is divided by 2 in the rst system (26 dB), then multiplied by 10
in the second (120 dB), so the overall system is like ct -5ct . The corresponding power changes in dB can be added to give the overall power gain
as 6 20 14 dB.
Check: A voltage gain of 5 is found directly as: 20 log
5
1
5 13.98 dB.
2:6
where at and bt are real functions and its complex conjugate as:
s t at j bt
2:7
2:8
2:9
Using the usual vector notation for the Argand (complex) plane, the magnitude
(or modulus) and phase of a signal st at j bt can be dened as:
p q
Magnitude of st:jstj sts t a 2 t b 2 t
2:10
Phase of st: t tan1
Imst
bt
tan1
Rest
at
2:11
2:12
The identity can be rewritten with 2f0 t to give the general form of an
expression for all sinusoids, both real and complex.
e j2f0 t cos2f0 t j sin2f0 t
2:13
This form of the general sinusoid has the further advantage that the derivative of
an exponential is easily computed by hand, as are the corresponding integrals. The
identities shown below for both sine and cosine will prove to be especially important.
cos2f0 t
e j 2f 0 t e j 2f 0 t
2
2:14
sin2f0 t
e j 2f 0 t e j 2f 0 t
2j
2:15
53
REAL
IMAG.
Phase
54
(t) t
Slope 1
0
FIGURE 2.17 Complex Signal st e j 2f0 t as real and imaginary parts (top) and as
magnitude and phase (bottom).
2. From Equation 2.10, the magnitude jst j is constant 1. From Eqn. 2.11,
the phase changes linearly with frequency, as shown in Figure 2.17
(lower part).
In Figure 2.17 the magnitude jst j 1. Consequently, if another signal g t
was multiplied by e j 2ft , the magnitude of g t would not be affected.
Furthermore, note that this linear phase plot is identical in form to the phase
change associated with shifting a time domain signal as seen in Section 1.4.2.
This observation suggests that shifting a signal in time is directly related to this
frequency-related multiplication by e jt . This relationship will often be
encountered.
%
%
%
%
%
The phase and magnitude can now be calculated using angle() and abs() to
produce the second form of the graph in Figure 2.18. As a practical matter, any
REAL + IMAGINARY
Amplitude
1
0
1
10
8
6
4
2
0
2
MAGNITUDE
8
4
Magnitude
10
10
10
2
1
0
1
10
2
0
PHASE
(rad)
0
10
8
6
2
0
t (s)
FIGURE 2.18 Complex Signal st e jt showing real and imaginary parts, magnitude and phase.
Period 5 2 s.
4
5
55
56
%
%
%
%
magnitude of a
phase of a
plot 2 of 3
plot the magnitude
% plot 3 of 3
% plot the phase
N
X
st t nT
2:16
n N
and the resulting sequence of impulses with different areas appears graphically as
arrows having heights that follow the variations in st , as shown in Figure 2.19. In
this way, the impulse train serves to extract values of st (called samples) at regularly
spaced intervals nT. The resulting array of values sn is called a discrete time signal.
Unlike a continuous time signal st , the discrete time signal exists only at the
specic times nT and yet the values in sn nonetheless reect the variations that
characterize the continuous function st . The subject of discrete signals is fully
covered in Chapter 8.
Any signal manipulated or stored using a digital computer is necessarily represented as a discrete signal where specic memory locations may hold each of the
values sn. Using MATLAB, for example, the mathematical function cost is continuous but a xed number of points is necessarily chosen to represent the signal for
display or calculation. In the example code below, 51 values of time are dened as
t = -10:0.4:10 to represent a set of sample times taken every 0.4 s, and the
corresponding samples of the variable c describe a discrete time signal. Sample
points from a discrete time signal are best seen on a graph using the stem()
function as in Figure 2.20. Another choice of plot maintains the level of each sample
point until the next sample time6 by using the stairs() plotting command that
gives a continuous stepped appearance as in Figure 2.21. In either case, the discrete
time signal cosnT is shown for T 0:4 sec.
t = -10 : 0.4 : 10;
c = cos(t);
stem (t, c, '.')
axis([-10 10 -2 2 ]);
grid on;
6
s(t)
1
0
1
2
10
8
4
2
10
10
35
40
45
50
Impulse train
(t-nT)
1
0
1
10
8
6
4
1
0
1
2
0
10
15
20
25
n
30
FIGURE 2.19 A discrete time signal sn can be created by multiplying the continuous time signal st
by an impulse train ct . The elements of sn hold the corresponding value snT as found in the
area of each impulse.
2
1.5
1
0.5
0
0.5
1
1.5
2
10
15
20
25
n
30
35
40
45
50
57
58
2
1.5
1
0.5
0
0.5
1
1.5
2
10
15
20
25
n
30
35
40
45
50
7
6
5
4
3
2
1
0
1
2
3
4
5
6
7
8
0
10
15
20
25
n
30
35
40
45
50
FIGURE 2.22 A digital signal sn cosnT using 4 bits 5 16 discrete voltage levels.
Rand(t)
2
1.5
1
0.5
0
0.5
1
1.5
2
10
8
6
4
2
0
Time
10
FIGURE 2.23 A random signal is described by its statistical properties, such as the mean and standard
devation of its value over time.
59
60
2.10 | Conclusions
used with no adjustment necessary. Care must be taken in checking
numerical answers against theoretical results.
3. Vertical linesRectangles that do not appear exactly square, impulses that
look like triangles, or jagged vertical lines will inevitably be seen in plots,
depending on the time increment and the chosen display axes. The time
increments suggested for the examples in this chapter have been chosen to
minimize such effects.
4. Dening the impulse t A workable approximation to an impulse can be
created in MATLAB as a vector that is zero everywhere except at the point of
interest, where a single value 1 can be placed.
For example, consider three impulses to be placed at 0, , 5 s:
t = -10 : 0.01 : 10;
impA = (t == 0);
impB = (t == 5);
impC = (t == pi);
plot(t, impA + impB + impC);
axis([-10 10 -2 2 ]);
grid on;
%
%
%
%
impulse at t= 0
impulse at t= 5
impulse at t= pi
plot 3 impulses
%
t
t
t
2.10 Conclusions
A signal st dened as a time-varying voltage or current often has specic properties that characterize its appearance or behavior. Several commonplace signal
types have been introduced and their properties explored. Signals analysis is made
easier by recognizing fundamental signal types and classications, and by expressing
signals in terms of those fundamental components. Many signals will be more
readily appreciated if viewed in the frequency domain, where their properties and
behavior can be visualized from a different perspective. The mathematics that allow
signal decomposition and a unique frequency domain representation of any signal
st will be explored in the next chapter.
61
62
End-of-Chapter Exercises
2.1 Consider a complex function of time zt
xt jyt .
(a) What is the complex conjugate of zt ?
(b) What is the magnitude of zt ?
2.2 Show that the even part of the product of two
functions is equal to the product of the odd parts
plus the product of the even parts.
2.3 Identify which of the following signals are even or
odd or neither.
at 2 sint
bt 3 cos2t
ct 10 sin2t =4
dt cost =2
2.9
st
wt 30 sin100t =2
at xt yt
xt 30 cos100t
yt 10 cos300t
bt xt yt zt
ct xt 3 yt
zt 6 cos500t
dt wt 3 wt
10
at 3 bt dt
st
10
10
at 3 t 1 dt
at js2t 3j
bt s4t 52
et 5 sint 1
2.4 Express each of the signals in Figure 2.24 as a
linear combination of signals of the form st
A cos2 f0 t :
10
2.10 | Conclusions
where 0 # P # 100. The signal is at 1 V for P
percent of its period and is 0 V otherwise.
The following hints may be useful in the
question:
Let the period be T. (The exact period is not
relevant to the Vrms calculation. In any case, the
specic value for T could be inserted
afterwards.)
Sketch the waveform to help set up the
integration.
Using a pulse centered on the origin may save
some math (make an odd or even function).
(a) Compute Vrms for this waveform, as a function of P.
(b) Use the result from (a) to nd Vrms for P 50%
(square wave with DC-offset).
(c) Use the result from (a) to nd Vrms for P 25%
(pulse train).
(d) Use the result from (a) to nd Vrms for
P 75% (pulse train).
(e) Use the result from (a) to nd Vrms for
P 100% (DC value : : : checks your result.)
(f) Use the result from (a) to nd Vrms for P 0%
(Zero : : : checks your result.)
Odd or
even or
neither
ct
at bt
at 3 bt
f t 5ct 10 5ct 10
g t 2ct=10
a 2 t 1156 cos2 200t
2.18 Refer to the signal st in Figure 2.25 and answer
the following questions.
Identify st as odd, even, or neither.
Find the period of st .
Find the value st at t 5 0.
Determine the two sinusoidal components
that add to give this signal.
(e) Is the above answer unique?
To answer the nal part (d), use your observations from a through c above, and make some reasonable assumptions about the component signals.
(a)
(b)
(c)
(d)
bt 99 sin150t
ct rectt
4
3
2
1
0
1
2
3
4
1.5
1
0.5
Period
(sec)
bt
at 34 cos200t
5
2
Energy
or Power?
at
63
0
Time
0.5
1.5
64
5
4
3
2
1
0
1
2
3
4
5
2
1.5
1
0.5
0
Time
0.5
1.5
at 5 cos2t
bt 5 cost
ct 5 sint
dt 5 rectt=3
et t
103
65
101
Frequency (rad/s)
102
System: sys
Frequency (rad/s): 33.6
Magnitude (dB): 9.86
101
10
5
10
102
30
20
10
Magnitude (dB)
Magnitude (dB)
System: sys
Frequency (rad/s): 0.1
Magnitude (dB): 20
System: sys
Frequency (rad/s): 0.199
Magnitude (dB): 7.95
100
System: sys
Frequency (rad/s): 10.6
Magnitude (dB): 0.795
101
100
Frequency (rad/s)
B System: sys
Frequency (rad/s): 1
Magnitude (dB): 3.01
101
C System: sys
Frequency (rad/s): 10.1
Magnitude (dB): 0.043
102
2.10 | Conclusions