Signal Spectra, Signal Processing Lecture Part 2
Signal Spectra, Signal Processing Lecture Part 2
Signal Processing
Engr. Ernesto Vergara
[email protected]
Signals
• A signal is a physical quantity, or quality, which
conveys information.
• Examples
- Motion, sound, picture, video, traffic light…
- Natural system (ecosystem), human-made system (machines,
computer storage system), abstract system (traffic, computer
programs), descriptive system (plans)
Systems
• A physical device that performs an operation on a signal. It may be
classified as linear or non-linear system.
Software Hardware
Algorithms
- set of rules for implementing the
system by a program that performs
the operations.
What is signal processing?
• The conversion from excitation to response is called
signal processing
• D/A Converter – interface from the digital domain to the analog domain.
Sometimes, this is not essential anymore.
x(t), xq(kT)
1
hold on
stem(t,xq,'r')
hold off 0
ylabel('x(t), x_q(kT)')
xlabel('t') -1
legend('analog signal',...
'digital (quantized)')
-2
0 10 20 30
t
CLASSIFICATIONS
OF SIGNALS
Multichannel and/or
Multidimensional Signals
• Multichannel Signals - Signals generated by
multiple sources or multiple sensors which can be
represented in vector form (i.e. electrocardiogram,
ECG, which may be 3-lead or 12-lead device.).
G B
Video Color Palette
Color Television
R = Red
G = Green
B = Blue
B + G = Cyan
G + R = Yellow
B + R = Magenta
NTSC Color Bars
Continuous-Time and/or Discrete-
Time Signals
• A signal is continuous if the independent
variable is continuous also known as
continuous time signal. Example of
continuous-time signals are: telephone or radio
signal as a function of time, atmospheric
pressure as a function of altitude
where: A = amplitude
Ω = 2 F (rad/sec)
θ = phase angle (rad)
TP = 1 / F
A
A cos θ
t
Properties Of Continuous-Time
Sinusoidal Signal
1. For every fixed value of the frequency, F, xa(t) is
periodic.
xa(t + TP) = xa(t)where: TP = 1 / F - fundamental period
... ...
n
-A
Properties of Discrete-Time
Sinusoidal Signals
1. A discrete-time sinusoid is periodic only if its frequency, f, is a
rational number.
x(n + N) = x(n) for all n
where: N – fundamental period
1 1 2
constitutes all the existing discrete-time sinusoids or complex
exponentials.
CONTINUOUS-TIME EXPONENTIALS
• Basic Signals: s k (t ) e jk0t e jk 2F0t , k = 0, ±1, ±2,….
– periodic for each value of k
– 1/kF0 = Tp/k fundamental period
– kF0 fundamental frequency
k
Fourier-series Expansion for xa(t)
S k N (n) e jk 2 ( k N ) nfo
S k N (n) e jk 2 ( k N ) n / N e jk 2n S k (n) S k (n)
Assume the set n0 = 0,
S k (n) e jk 2n / N k = 0, ±1, ±2,….
N 1 N 1
x(n) C k S k (n) C k e j 2kn / N
k 0 k 0
• A periodic signal with fundamental period N.
• The sequence Sk(n) is called the kth harmonic of x(n).
Sample Problem
Classify the following signals according to whether they are (1) one
or multi-dimensional (2) single or multichannel, (3) continous time or
discrete time, and (4) analog or digital(in amplitude). Give a brief
explanation.
(a) closing prices of utility stocks on the New York Stock Exchange.
(b) A color movie
(c) Position of the steering wheel of a car in motion relative to car’s
reference frame.
(d) Position of the steering wheel of a car in motion relative to
ground reference frame.
(e) Weight and height measurements of a child taken every month.
Answer
(a) closing prices of utility stocks on the New York Stock Exchange.
Overlapping of frequency
(Frequency Aliasing)
SAMPLING THEOREM
• If Fmax = B, Fs = 2B, we use the interpolation function,
sin 2Bt
g (t )
2Bt Time shifting
• Thus x a (t ) x a (n / Fs ) g (t n / Fs )
where:
x a (n / Fs ) x a (nT )
• Consider sampling at xa(t) at Fs = 2B
sin 2B(t n / 2 B)
x a (t ) x a (n / 2 B)
n 2B(t n / 2 B)
• then, the Nyquist frequency is Fn = 2B = 2Fmax.
NYQUIST SAMPLING RATE
• The sampling frequency,FS, must be at least TWICE
the higher frequency,FH, present in the signal to
prevent aliasing
FS ≥ 2 FH
ALIAS FREQUENCY, FA
• Recovered frequency FR which is not the same as
the original frequency
FA = FS – KFH or FA = FH - kFS
SYSTEM
INPUT OUTPUT
2 2
1 1
0 0
-1
FN = Fs ≥ 2Fmax = 2(50 Hz) = 100 Hz -1
-2 -2
-3 -3
0 5 10 15 20 25 30 0 5 10 15 20 25 30
xa(t) = 3cos100 πt
FN = Fs = 75 Hz
Sample Problem
Consider the analog signal
Sampling Theorem:
Fs > 2Fmax
Nyquist Frequency:
FN = 2Fmax = 2(150 Hz) = 300 Hz
Sample Problem
Consider the analog signal
xa(t) = 3cos2000πt + 5sin6000πt + 10 cos12000πt
(a) What is the Nyquist rate for this signal?
(b) Assume now that we sample this signal using
a sampling rate Fs = 5000 samples/s. What is
the discrete-time signal obtained after
sampling?
(c) What is the analog signal ya(t) we can
reconstruct from samples if we use ideal
interpolation?
Answer
(a) What is the Nyquist rate for this signal?
F1 = 1000 Hz F2 = 3000 Hz F3 = 6000 Hz
Sampling Theorem:
Fs > 2Fmax ; Fs > 2(6000 Hz) = 12000 Hz
Nyquist Frequency:
FN = 2Fmax = 2(6000 Hz) = 12000 Hz
Answer
(b) Fs = 5000 samples/s:
x(n) = 3cos(2000/5000)πn + 5sin(6000/5000)πn +
10cos(12000/5000)πn
x(n) = 3cos[2π(1/5)]n + 5sin[2π(3/5)]n +
10cos[2π(6/5)]n
x(n) = 3cos[2π(1/5)]n + 5sin[2π(1 - 2/5)]n +
10cos[2π(1 + 1/5)]n
x(n) = 3cos[2π(1/5)]n + 5sin[2π(- 2/5)]n +
10cos[2π(1/5)]n
x(n) = 3cos[2π(1/5)]n - 5sin[2π(2/5)]n +
10cos[2π(1/5)]n = 13cos[2π(1/5)]n - 5sin[2π(2/5)]n
Answer
(c) Fs = 5000 samples/s:
x(n) = 13cos[2π(1/5)]n - 5sin[2π(2/5)]n
• Speed and cost. DSP designs can be expensive especially when large
bandwidth signals are involved. At the present, fast ADC’s/DAC’s(analogue-to-
digital converters/digital-to-analogue converters) either are too expensive or to
not have sufficient resolution for wide bandwidth DSP applications.
• Design time. Unless you are knowledgeable in DSP techniques and have the
necessary resources(software packages and so on), DSP designs can be time
consuming and some in cases almost impossible. The acute shortage of
suitable engineers in this area is widely recognized.