Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Introduction
Sinusoids
Digital Signal Processing
Complex
Exponential
Signals
Lecture 1 - Discrete-Time Signals
Spectrum
Applications
Appendix
Lecture 1
Introduction
1 Introduction
Sinusoids
Complex 2 Sinusoids
Exponential
Signals
Appendix
4 Spectrum
5 Applications
6 Appendix
Basic ideas in DSP
Lecture 1
Introduction
Sinusoids
Complex
Exponential
Signals Frequency analysis
Spectrum
Sampling
Applications
Appendix Filtering
Clarification of terminologies
Lecture 1
Applications
Appendix
Lecture 1
Complex
or
Exponential xa (t) = A cos(2πFt + θ), −∞ < t < ∞
Signals
Spectrum where
Applications
A: amplitude
Appendix
θ: phase (radians) or phase shift
Ω = 2πF : radian frequency (radians per second, rad/s)
F : cyclic frequency (cycles per second, herz, Hz)
Tp = 1/F : fundamental period (sec) such that
xa (t + Tp ) = xa (t)
More on frequency
Lecture 1
x(t)=10cos(2pi(440)t)
10
0
Introduction
Sinusoids −10
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
Complex x(t)=10cos(2pi(880)t)
10
Exponential
Signals
0
Spectrum
−10
Applications 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
x(t)=10cos(2pi(236)t)
Appendix 10
Amplitude
−10
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
Time t (sec)
What if F = 0?
More on frequency - How does it sound?1
Lecture 1
Introduction
Sinusoids
Complex A440
Exponential
Signals A880
Spectrum
C236
Applications
Appendix
A tuning fork demo
1
The multimedia materials are from McClellan, Schafer and Yoder,
DSP FIRST: A Multimedia Approach. Prentice Hall, Upper Saddle River,
New Jersey, 1998. Copyright (c) 1998 Prentice Hall.
More on frequency - The MATLAB code
Lecture 1
1 % Lecture 1 - Sinusoid
2 % plot a sinusoidal signal and listen to it
Introduction
3 % 440Hz is the frequency of A above middle C on a musical scale
Sinusoids 4 % it is often used as the reference note for tuning purpose
5 %
Complex 6 clear buffer
Exponential 7 clear all;
Signals 8 clf;
9
Spectrum 10 % specify parameters
11 F =440;
Applications 12 t = 0:1/F/30:1/F*5;
Appendix 13 x = 10*cos(2*pi*F*t - 0.4*pi);
14
15 % plot the signal
16 plot(t,x);
17 title(’Sinusoidal signal x(t)’);
18 xlabel(’Time t (sec)’);
19 ylabel(’Amplitude’);
20 grid on;
21
22 % play the signal
23 sound(x)
More on phase - Phase shift vs. Time shift
Lecture 1
xa (t − t1 ) = A cos(Ω(t − t1 )) = A cos(Ωt + θ)
|t1 | ≤ Tp /2 =⇒ −π < θ ≤ π
Complex exponential signals
Lecture 1
According to Euler’s formula
Lecture 1
1 1
{( X , F ), ( X ∗ , −F )}
2 2
Spectrogram: frequency changes over time
Application 1: Phasor addition
Lecture 1
Spectrum N
X
Applications
Ak cos(Ωt + θk ) = A cos(Ωt + θ)
Appendix
k =1
Proof
Exercise:
xa (t) = A0 + N
Introduction
P
A cos(2πFk t + θk )
Sinusoids PkN=1 k
= X0 + k =1 <{Xk ej2πFk t }
Complex
Xk∗ −j2πFk t
= X0 + N Xk j2πFk t
P
Exponential
Signals
{
k =1 2 e + 2 e }
Spectrum
Applications
where Xk = Aejθk .
Appendix 2N + 1 complex phasors
1 1 1 1
{(X0 , 0), ( X1 , F1 ), ( X1∗ , −F1 ), ( X2 , F2 ), ( X2∗ , −F2 ), · · · }
2 2 2 2
Exercise
Spectrum
where
Applications F1 = Fc − F∆ and F2 = Fc + F∆ .
Appendix Fc = 12 (F1 + F2 ) is the center frequency
F∆ = 12 (F2 − F1 ) is the deviation frequency
In general, F∆ << Fc
Two-sided spectrum representation,
1 1 1 1
{( , F1 ), ( , −F1 ), ( , F2 ), ( , −F2 )}
2 2 2 2
Adding two sinusoids with nearly identical
frequencies - Beat notes (cont’)
Lecture 1
1
Introduction
Sinusoids Amplitude 0
Complex −1
Exponential
Signals
−2
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
Spectrum
−1
−2
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
Time t (sec)
A demo
Adding two sinusoids with nearly identical
frequencies: Beat notes (cont’)
Lecture 1
Beat signal with fc=2000, fdel=2
1
1400
0.5 1200
Introduction
1000
Time
Sinusoids 0
800
Complex 600
−0.5
Exponential 400
Signals
−1 200
Spectrum 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
Normalized Frequency (×π rad/sample)
Applications Beat signal with fc=2000, fdel=200
1
Appendix 1400
0.5 1200
1000
Time
0
800
600
−0.5
400
−1 200
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
Normalized Frequency (×π rad/sample)
Introduction 6
Sinusoids
4
Complex
Exponential
Signals 2
Amplitude
Spectrum
0
Applications
Appendix −2
−4
−6
−8
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
Time t (sec)
A demo
Application 5: Adding cosine waves with
harmonically related frequencies - Periodic
waveforms
Lecture 1
Sinusoids
approximated with a sum of harmonically related
Complex
sinusoids, although the sum may need an infinite
Exponential
Signals
number of terms.
Spectrum
xa (t) = A0 + N
P
Applications =1 Ak cos(2πkF0 t + θk )
kP
Appendix
= X0 + <{ N k =1 Xk e
j2πkF0 t }
Sinusoids
Z T0 Z T0
2 −j2πkt/T0 1
Complex Xk = xa (t)e dt, X0 = xa (t)dt
Exponential T0 0 T0 0
Signals
Spectrum
Lecture 1
Lecture 1
A linear−FM chirp signal with f1=200 Hz, f2=2000 Hz
1
amplitude
Introduction 0
Sinusoids
−1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Complex 4
time x 10
Exponential
Signals 1
Spectrum 0
Applications
−1
Appendix 0 1000 2000 3000 4000 5000 6000 7000 8000 9000
2500
2000
Time
1500
1000
500
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency (×π rad/sample)
A demo
Euler’s formula and Inverse Euler’s formula
Lecture 1
Introduction
Euler’s formula
Sinusoids
Complex
Exponential ejθ = cos θ + j sin θ
Signals
Spectrum
Inverse Euler’s formula
Applications
Lecture 1
Introduction
Sinusoids
Spectrum
cos 2θ = cos2 θ − sin2 θ
Applications sin 2θ = 2 sin θ cos θ
Appendix
sin(α ± β) = sin α cos β ± cos α sin β
cos(α ± β) = cos α cos β ∓ sin α sin β
Basic properties of the sine and cosine
functions
Lecture 1
Equivalence
Introduction
Sinusoids
sin θ = cos(θ − π/2) or cos θ = sin(θ + π/2)
Complex
Exponential Periodicity
Signals
Spectrum
cos(θ + 2k π) = cos θ, when k is an integer
Applications
Appendix
Evenness of cosine
cos(−θ) = cos θ
Oddness of sine
sin(−θ) = − sin θ
Basic properties of the sine and cosine
functions (cont’)
Lecture 1
Zeros of sine
Complex
Exponential
Ones of cosine
Signals