Docsity

Homework 2 Solutions - Selected Topics | ECE 802, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 802-601 Homework 2 Solutions
1. Prove that the spectrogram can be written as convolution of Wigner distribution of
the signal with Wigner distribution of the window.
PSP (t, ω) = Z Z Ws(t0, ω 0)Wh(t0−t, ω −ω0)dt0dω0(1)
To prove this equality, we’ll use Moyal’s formula.
PSP (t, ω) = 1
2π|Zs(u)h(u−t)e−jωu du|2(2)
Using the formulation from the previous question, let s1(u) = s(u), and s∗
2(u) =
h(u−t)e−jωu . Therefore, using Moyal’s formula, the spectrogram can be written as
PSP (t, ω) = Z Z Ws1(u, ω 0)Ws2(u, ω0)dudω0(3)
where Ws1(u, ω0) = Ws(u, ω0) since s1(u) = s(u). Ws2(u, ω 0) is the Wigner distribution
of h∗(u−t)ejωu and can be expressed in terms of Wigner distribution of the window.
Ws2(u, ω0) = Zh(u−t−τ /2)h∗(u−t+τ /2)ej ω(u+τ /2)e−jω (u−τ/2) e−jω0τdτ
=Zh(u−t−τ/2)h∗(u−t+τ/2)ej(ω−ω0)τdτ
=W∗
h(u−t, ω −ω0)
=Wh(u−t, ω −ω0) (4)
Therefore,
PSP (t, ω) = Z Z Ws(u, ω 0)Wh(u−t, ω −ω0)dudω0(5)
2. For s(t) = A1ejω1t+A2ejω2t,the instantaneous frequency can be found as follows. First
we need to compute Wigner distribution of the signal. From the results developed in
class
W(t, ω) = A2
1δ(ω−ω1) + A2
2δ(ω−ω2)+2A1A2δ(ω−ω1+ω2
2) cos((ω2−ω1)t) (6)
The instantaneous frequency is defined as:
< ω >t=RωW (t, ω )dω
|s(t)|2(7)
where |s(t)|2=A2
1+A2
2+2A1A2cos((ω2−ω1)t). Therefore,the instantaneous frequency
is:
< ω >t=A2
1ω1+A2
2ω2+ 2A1A2cos((ω2−ω1)t)ω1+ω2
2
A2
1+A2
2+ 2A1A2cos((ω2−ω1)t)(8)
1
pf3
pf4
pf5

Partial preview of the text

Download Homework 2 Solutions - Selected Topics | ECE 802 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 802-601 Homework 2 Solutions

  1. Prove that the spectrogram can be written as convolution of Wigner distribution of the signal with Wigner distribution of the window.

PSP (t, ω) =

∫ ∫ Ws(t′, ω′)Wh(t′^ − t, ω − ω′)dt′dω′^ (1)

To prove this equality, we’ll use Moyal’s formula.

PSP (t, ω) =

2 π

∫ s(u)h(u − t)e−jωudu|^2 (2)

Using the formulation from the previous question, let s 1 (u) = s(u), and s∗ 2 (u) = h(u − t)e−jωu. Therefore, using Moyal’s formula, the spectrogram can be written as

PSP (t, ω) =

∫ ∫ Ws 1 (u, ω′)Ws 2 (u, ω′)dudω′^ (3)

where Ws 1 (u, ω′) = Ws(u, ω′) since s 1 (u) = s(u). Ws 2 (u, ω′) is the Wigner distribution of h∗(u − t)ejωu^ and can be expressed in terms of Wigner distribution of the window.

Ws 2 (u, ω′) =

∫ h(u − t − τ /2)h∗(u − t + τ /2)ejω(u+τ /2)e−jω(u−τ /2)e−jω

′τ dτ

=

∫ h(u − t − τ /2)h∗(u − t + τ /2)ej(ω−ω

′)τ dτ = W (^) h∗ (u − t, ω − ω′) = Wh(u − t, ω − ω′) (4)

Therefore, PSP (t, ω) =

∫ ∫ Ws(u, ω′)Wh(u − t, ω − ω′)dudω′^ (5)

  1. For s(t) = A 1 ejω^1 t^ + A 2 ejω^2 t,the instantaneous frequency can be found as follows. First we need to compute Wigner distribution of the signal. From the results developed in class

W (t, ω) = A^21 δ(ω − ω 1 ) + A^22 δ(ω − ω 2 ) + 2A 1 A 2 δ(ω −

ω 1 + ω 2 2

) cos((ω 2 − ω 1 )t) (6)

The instantaneous frequency is defined as:

< ω >t=

∫ ωW (t, ω)dω |s(t)|^2

where |s(t)|^2 = A^21 +A^22 +2A 1 A 2 cos((ω 2 −ω 1 )t). Therefore,the instantaneous frequency is: < ω >t=

A^21 ω 1 + A^22 ω 2 + 2A 1 A 2 cos((ω 2 − ω 1 )t)ω^1 + 2 ω^2 A^21 + A^22 + 2A 1 A 2 cos((ω 2 − ω 1 )t)

(^170 1 2 3 4 )

18

19

20

21

22

23

24

25

26

27

Time

Instantaneous Frequency

Figure 1: The instantaneous frequency versus time

For the particular signal given in this question, A 1 = 0.4,A 2 = 1,ω 1 = 10, and ω 2 = 20. In this case, the instantaneous frequency is:

21 .6 + 12 cos(10t) 1 .16 + 0.8 cos(10t)

This result does not match our intuition since the instantaneous frequency is outside of the range of frequencies that exist in this signal (10-20). b)The Wigner distribution for this signal is from part (a):

W (t, ω) = 0. 16 δ(ω − 10) + δ(ω − 20) + 0. 8 δ(ω − 15) cos(10t) (10)

c)function fr=instfr(tfd); [N, M ]=size(tfd); vec=[0:1/(N-1):1]’; for k=1:M; fr(k)=sum(vec.*tfd(:,k))/sum(tfd(:,k)); end

  1. The frequency marginal for the given distribution is:

∫ ‖f ‖−^2 |f (u)|^2 |F (ω)|^2 du =

|F (ω)|^2 ‖f ‖^2

∫ |f (u)|^2 du = |F (ω)|^2 (11)

Wigner distribution

0 50 100 150

− − 0 50 100

Choi−Williams σ=

0 50 100 150

− − 0 50 100 Choi−Williams σ=

0 50 100 150

− − 0 50 100

Choi−Williams σ=0.

0 50 100 150

− − 0 50 100

Figure 3: The Wigner and Choi-Williams distributions for the two crossing chirps

(^00 50 100 150 )

1

2

3

4 Time Marginal

−10 0 50 100 150 200 250 300

0

10

20

30 Frequency Marginal

Figure 4: The time and the frequency marginals

that will filter out everything but the auto-terms as φ(γ, τ ) = δ(γ + ω 1 τ ) + δ(γ + ω 1 τ ) − δ(γ)δ(τ ). c)

The ambiguity function of the signal

20 40 60 80 100 120

(^2040) (^6080) (^100120) Filtered Ambiguity Function

20 40 60 80 100 120

(^2040) (^6080) (^100120)

20 40 60 80 100 120

(^2040) (^6080) (^100120)

Figure 5: Ambiguity functions and the distribution