0% found this document useful (0 votes)
4 views8 pages

Worksheet 3 completed

The document consists of a series of MATLAB problems involving the plotting of various mathematical functions and signals. It includes detailed instructions for plotting functions such as x(t), y(t), and their Fourier transforms, as well as determining the Fourier Series expansion of a given signal. Each problem is allocated a specific mark value, indicating its importance in the overall assignment.

Uploaded by

hayatkk10407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views8 pages

Worksheet 3 completed

The document consists of a series of MATLAB problems involving the plotting of various mathematical functions and signals. It includes detailed instructions for plotting functions such as x(t), y(t), and their Fourier transforms, as well as determining the Fourier Series expansion of a given signal. Each problem is allocated a specific mark value, indicating its importance in the overall assignment.

Uploaded by

hayatkk10407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Worksheet 3

Problem 1 [20 marks]

Use MATLAB to plot the signals:


2
x (t )=t −2 t+ 3, −2<t <2
y ( t ) =4 cos ( 2 πt−12 ° )+ 3 sin2 πt ,−π < t< π
Solution:

Plot of x(t) = t 2 - 2t + 3
15

10
x(t)

0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
t

Plot of y(t) = 4cos(2 t - 12 ) + 3sin(2 t)
10

5
y(t)

-5

-10
-4 -3 -2 -1 0 1 2 3 4
t

Fig 1: plot of x (t) and y (t)

Problem 2 [20 marks]

Use MATLAB to plot:

1
¿ F ( ω )∨¿ , −5< ω<5
√ 4+ ω2
Plot:

Plot of |F()| = 1/  (4 + 2)


0.5

0.45

0.4

0.35
|F()|

0.3

0.25

0.2

-5 -4 -3 -2 -1 0 1 2 3 4 5

Fig 2: plot of F (w)


2
G ( ω ) =10 sin c (5 ω), −10< ω<10
Plot:
Plot of G(\omega) = 10 \cdot \text{sinc}^2(5\omega)
10

6
G()

0
-10 -8 -6 -4 -2 0 2 4 6 8 10

Fig 3: G ( ω ) =10 sin c 2(5 ω), −10< ω<10

Problem 3 [20 marks]

Use MATLAB to plot the magnitude and phase of

F ( ω )=10 je
− jπω
( 1−ω )
sin π ω
2 for −5< ω<5
Plot:

Magnitude of F()
20

|F()| 15

10

0
-5 -4 -3 -2 -1 0 1 2 3 4 5

Phase of F()
4

2
 F()

-2

-4
-5 -4 -3 -2 -1 0 1 2 3 4 5

Fig 4: the magnitude and phase of F(w)

Problem 4 [20 marks]

Determine the Fourier Series expansion of the signal below:

Solution:

Here period

To = 6


Wo =
6
π
Wo =
3
Now exponential Fourier series coefficient
T0
1
¿∫
− jnw 0 t
Cn= x (t )e dt
0

[∫ ]
3 4 ❑
− jn π
1 t 3
Cn= ∫ 1. e 3
dt + 3e − jnwot
dt
¿ 0 6 3

[ ][ ]
− jn π 3 − jn π 4
t t
3 3
1 e 3 e
Cn= +
6 − jnπ 6 − jnπ
3 3

Limit is fro 0 to 3 and from 3 to 4

[ ]
3
1 3 (1+ 1) 1
Cn= + ¿¿
6 − jn π 2
3

− jn π 4
3
− j 1.5 j 1.5 j e
Cn= + +
n π πn nπ

− jn π 4
3
0.5 j+1.5 j e ----------------- Eq (i)
Cn=

Now Fourier series x(t) is

x (t)= ∑ ( ne jnwot )
n=−∞

x (t)= ∑ (0.53+ 1.5 j e )e


∞ − jn π 4 − jn π
3 3
t
n=−∞

now equation (i)

Cn = c(nWo), if number of turn are larger than

0.5+ 1.5 j(−0.5+ j0.866)


C 1=
π
0.5+ 0.75 j−1.3
C 1=
π
C 1=0.35
Similarly C2, C3, C4, C5 is

0.5+ 1.5 j(−0.5+ j 0.866)


C 2=

0.5+ 0.75 j−1.3
C 2=

C 2=0.31
0.5+1.5 j(−0.5+ j 0.866)
C 3=

0.5+0.75 j−1.3
C 3=

C 3=0.167
0.5+ 1.5 j(−0.5+ j 0.866)
C 4=

0.5+ 0.75 j−1.3
C 4=

C 4=0.0872
0.5+1.5 j(−0.5+ j 0.866)
C 5=

0.5+0.75 j−1.3
C 5=

C 5=0.124
Problem 5 [20 marks]

20
Given the Fourier transform of g(t ) is G ( ω ) = , find the Fourier transform of the following:
1+ jω
g (−2 t )
Solution:

20
Given the Fourier transform of g(t) is G ( ω ) = ,
1+ jω
Apply the time scaling property:

1
F { g ( at ) } =
w
¿ a∨¿ G( )¿
a
For g(-2), a = -2. So

1
F { g (−2 t ) }=
w
¿−2∨¿ G( )¿
−2
Substitute the given Fourier transform G(w):

1 −w
F { g (−2 t ) }= G( )
2 2
Substitute G(w) and simplify:

1 −20
F { g (−2 t ) }= .( )
2 −w
1+ j( )
2
10
F { g (−2 t ) }= ¿¿
w
1− j ¿
2
10
F { g (−2 t ) }= ¿¿
So, the Fourier transform of w
1− j ¿
2

g ( t ) cos ⁡(πt)
Solution:
20
Given the Fourier transform of g(t) is G ( ω ) = ,
1+ jω
Apply the modulation property:

1
F { g (t) cos ⁡( α t) } = ¿

For g(t) cos( π t), α = π . So

1
F { g (t) cos ⁡( π t) }= ¿

Substitute the given Fourier transform;

1 20 20
F { g ( t ) cos ( π t ) }= ( + )
2 π 1+ j ( w−π ) 1+ j(w+ π )

Simplify:

10 1 1
F { g ( t ) cos ( π t ) }= ( + )
π 1+ j ( w−π ) 1+ j(w+ π )
10
F { g ( t ) cos ( π t ) }= ¿
π
10
F { g ( t ) cos ( π t ) }= ¿
π
10
F { g ( t ) cos ( π t ) }= ¿)
π

10
So the Fourier transform of g( π t) cos(t) is F { g ( t ) cos ( π t ) }= ¿
π

You might also like