Documente Academic
Documente Profesional
Documente Cultură
f (t ) k
c e jkt
k
EXPONENTIAL
(k 1,2,3,......)
Review
Fourier series expansion of periodic signal
1
a0
T f (t )dt
T
f (t ) a0 (ak cos kt bk sin kt ) ak
2
f (t ) cos(kt )dt
T
k 1 T
2 2
T
bk
T f (t ) sin(kt )dt
T
Ak ak bk
2 2
f (t ) A0 Ak cos(kt k ) A0 a0
bk
k 1 k tan 1 ( )
ak
ck e jkt 1
f (t ) ck f (t )e jkt dt
k T T
( k 1,2,3,......)
Fourier series expansion of periodic signal
1
f (t ) F ( )e jt
d F ( ) f (t )e jt dt
2
1 2 3 4 5 Harmonics
Magnitude
F ( )
Fourier transform
of a non-periodic
signal ( T0 )
T Spectrum
Fourier
f (t)
t Frequency
1
T0 f (Hz)
T0
Terms:
- Fourier Transform (FT)
1
Sampling rate (frequency): f s ( Hz) Frequency resolution: f 1/ T0
T
Sampling interval: T (sec) Max. Frequency : fmax (Hz)
n=1:1:N;
xn=sin(20*pi*(n-1)*dt)+0.5*cos(40*(n-1)*dt);
figure
plot(n,mag,'.-') %%%%%%% plot magnitude
Example 1 figures from Matlab
x(nt) 1.5
0.5
-0.5
-1
-1.5
0 50 100 150 200 250 300
X(n) 100
80
60
40
20
0
0 50 100 150 200 250 300
Example 1 Matlab script (add time and frequency units)
N=256; %%% sampling points
fs=100; %%% sampling rate (freq.)= 100 Hz
dt=1/fs; %%% sampling interval=0.01;
t=0:dt:(N-1)*dt; %%% length: (N-1)*dt
xt=sin(20*pi*t)+0.5*cos(40*t);
figure %%%%%%%%%% plot x(t)
plot(t,xt,'.-')
xlabel('Time (sec)')
ylabel('x(t)')
xf=fft(xt,N); %%%%%%%%Find fft of x(t)
Mag=abs(xf); %%% calculate the magnitude of X(f)
df=1/(N-1)/dt %%% df: frequency resolution
freq=0:df:fs;
figure,
plot(freq(1:N/2),Mag(1:N/2),'.-') %%% plot magnitude vs. frequency
grid
xlabel('Frequency (Hz)')
ylabel('Magnitude')
figure, %%%% plot magnitude in dB
plot(freq(1:N/2),20*log10(Mag(1:N/2)),'.-')
grid
xlabel('Frequency (Hz)')
ylabel('Magnitude (dB)')
title(‘Fourier Spectrum’)
Example 1 figures from Matlab
1.5 100
Fourier spectrum
90
1
80
Magnitude
70
0.5
60
Magnitude
x(t)
0 50
40
-0.5
30
20
-1
10
-1.5 0
0 5 10 15 20 25 30 35 40 45 50
0 0.5 1 1.5 2 2.5 3
Frequency (Hz)
Time (sec)
40
Fourier spectrum
Fourier Spectrum
30
Magnitude (dB)
20
Magnitude (dB)
10
-10
-20
0 5 10 15 20 25 30 35 40 45 50
Frequency (Hz)
Sampling, DFT/FFT, and STFT
• Sampling Theorem
-Discrete Fourier Transform (DFT)
/Fast Fourier Transform (FFT)
Sampled at 3000Hz:
Sampled at 1800Hz:
Sampled at 1500Hz:
Sampled at 1200Hz:
1000Hz
Estimated
frequency
500Hz aliased
Sampling
frequency
20
Aliasing
Sampled at 2000Hz:
Alias:
Sampled at 1000Hz: Frequencies greater
than 500Hz sound
Folded over as lower
frequencies, creating
distortion
21
Sampling Theorem
If a signal contains the highest frequency fmax,
the sampling frequency (rate)
(fs) >= 2 fmax
Anti-alias Filter
Sampling
Quantization
Digital output
A sampling rate of 200 Hz is not adequate
to sample a 360 Hz signal
Original signal
360 Hz signal, T=0.00278 sec
Frequency:
f=360 Hz;
Period:
T=1/360 (sec)
Signal reconstructed
after sampling
Conventional Clinical Tool: Videostroboscopy
Vocal Fold Cycles
Open
Apparent
Closed
Motion
Strobe flash
Closed
0.005 sec
1 vibratory cycle
Normal voice
Example 1: Signal processing by DFT/FFT
Noisy Sine wave
Sine wave
Original signal
Systolic
pressure
Diastolic
pressure
Example 2: Signal processing by DFT
FFT spectrum
Example 3: Vocal signal processing by DFT
Sound Pressure
Sound radiation
from lips
Vocal tract: Larynx
filter and
amplifier Sound
propagation in
the vocal tract
Vocal fold:
Source of Sound
Pi
Ps
mx bx kx P
Signal from the sound source: (vocal fold vibration)
1
0.5
GAW (Normalized)
-0.5
-1
10 20 30 40 50 60 70 80 90 100
FFT
Time (ms) Power Spectrum
5
10
FFT
4
10 Spectrum
Normal Voice Condition 3
10
2
10
0.5
-0.5
-1
10 20 30 40 50 60 70 80 90 100
Time (ms)
FFT
4 2
10
3 Spectrum
Normal Voice 10
3
Condition 10
2
1
10
4
10
10
3 2 DFT of the Vocal fold Vibration
10
2 3
0 200 400 600 800 1000
Frequency (Hz)
FFT Power Spectrum
4
10
2
3
3
10 DFT of the
2
10
sound output
1
10
Period
(ms)
Sound wave signal
Spectral analysis of MTD voice
FFT Power Spectrum
f
3f/2
4
10 2f 5f/2
f/2
3
10 3f
GAW
2
10
1
10
0 100 200 300 400 500 600 700 800 900 1000
Frequency (Hz)
Sub-harmonics
Short-time Fourier Transform (STFT)
(Time)
STFT: Time-frequency Analysis
STFT of EEG displayed in 3D plot
Amplitude
6 Hz
Time (s)
Spectrogram
Time (s)
3000 -20
800
Frequency
2500
600
2000 -40
1500 400
1000
-60
200
500
0
0 0.2
00.4 0.6
0 0.10.8 10.2 1.2 1.4
0.3 1.6 1.8
0.4 2 0.5
Time
Time (sec)