EEE321 Lab Work 3 Solution

$24.99 $18.99

Work on these questions as a homework first: answer the analytical parts of the questions and write the answers on a paper, write a MATLAB program (or many such programs) to perform the tasks that need computation, print your MATLAB code(s), print your computer outputs (numerical and graphic) whenever needed; the collection of all those…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:

Description

5/5 – (2 votes)

Work on these questions as a homework first: answer the analytical parts of the questions and write the answers on a paper, write a MATLAB program (or many such programs) to perform the tasks that need computation, print your MATLAB code(s), print your computer outputs (numerical and graphic) whenever needed; the collection of all those will be your lab report. Bring your code (in a computer readable form) to the lab; transfer your code to one of the lab computers; run and show your TA the results. Answer all the questions your TAs may ask. Modify your lab report, including any modifications needed in your MATLAB codes, during the lab hours in the lab. Finally, hand your TAs the lab report prepared as described above. Your report will get a grade based on your preparedness when you come to the lab, performance of your codes in the lab (any modifications needed and conducted during the lab hours included), your answers to the oral questions during your demo(s) in the lab, and the entire content of the submitted report at the end of the lab.

******************************

In this work, you will learn the Fourier series expansion and some related approximations.

1- ya(t) is a rectangular waveform defined as:

0

t [0, 4)s.

ya(t) =

5

t [4, 6)s.

0

t [6, 12)s.

and ya(t) is periodic with a period of 12 seconds.

Any signal processing in a digital environment involves sampling; that includes your MATLAB environement, as well.

  1. Discretize ya(t), using a sampling period Ts = 1/5 s. Plot (using MATLAB) y[n] = ya(nTs), for n [40, 215].

  1. Analytically find the Fourier series expansion of ya(t).

  1. Plot (approximately by hand) the spectrum of ya(t).

  1. Write a MATLAB code that computes the discrete function zN [n] using your results in (b), where,

N

zN [n] =

ake0knTs

k=−N

and ak’s are the FSE coefficients found in (b). Plot the result for n [40, 215], and for N = 70.

Comment on the results: does the plot look like ya(t)?

  1. Repeat (e) for N = 25.

  1. Repeat (e) for N = 7.

  1. Repeat (e) for N = 3.

  1. Repeat (e) for N = 1.

Consider your plots in (d) through (h) and comment on the quality of approximations zN [n], of ya(t), by taking only some of the FSE components during the synthesis; pay attention also to the Gibbs phenomenon.

  1. Plot the zeroth, first, second, and third harmonics of ya(t), using the same scale for all these plots. (Hint: zeroth harmonic is also the DC component of ya(t) that is a constant function whose amplitude (value) is equal to a0. kth harmonic of this real valued ya(t) is a−ke−jωokt + akeokt which is a real valued sinusoidal. Hint: Though you cannot plot a continuous function using MATLAB, you can get a very good approximation if the sampling rate is high enough.)

2- Replace ya(t) in (1), as,

(

π

ya(t) =

4 cos

.

6 t)

Repeat (1). (Full-wave rectifier.) (You need to find the FSE analytically, first; to do that you need to find the fundamental period.)

3- Replace ya(t) in (1), as,

4 cos

(

π

t

t

[ 3, 3) s .

ya(t) =

.

{ 0

t

[3,)9)s

∈ −

6

and it is periodic with period T = 12s. Repeat (1). (Half-wave rectifier.) (You need to find the FSE analytically, first; to do that you need to find the fundamental period.)

(cLevent Onural, 2018. Prepared only for the students registered to EEE321 course at Bilkent University in 2018-2019

fall semester. Not to be distributed to others by any means.)

EEE321 Lab Work 3 Solution
$24.99 $18.99