Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Lab - Fourier Series and Fourier Transform

Theory:
By sampling the discrete in time Fourier transform in the frequency domain we can obtain the discrete Fourier series (DFS). The DFS can then be extended to finite- duration sequences which results in a new transform, the discrete Fourier transform (DFT). The numerical computation of the DFT for long sequences can be prohibitively time consuming. As a result, algorithms were developed to compute the DFT efficiently and is collectively known as the fast Fourier transform (FFT).

Prelab Assignment:

Lab:

1. Compute the DFS coefficients of the following periodic sequences using the DFS definition and then verify your answers using MATLAB.

a. x1~(n) = {4,1, -1, 1} N = 4
b. x2~(n) = {2, 0, 0, 0, -1, 0, 0, 0}, N = 8
c. x3~(n) = {1, 0, -1, -1, 0}, N = 5
d. x4~(n) = {0, 0, 2 j, 0, 2j, 0), N = 6
e. x5~(n) = (3, 2, 1), N = 3

2. Let X(e) be the DTFT of a finite lenght sequence

32_DTFT1.jpg

a. Let

y1(n) = IDFS10-point[X(ej0), X(ej2Π/10), X(ej4Π/10),......,X(ej18Π/10) ]

Determine y1(n) using the frequency sampling theorem. Verify your answer using MATLAB.

b. Let

y2(n) = IDFS200-point[X(ej0), X(ej2Π/200), X(ej4Π/200),......,X(ej398Π/200) ]

Determine y2(n) using the frequency sampling theorem. Verify your answer using MATLAB.

c. Comment on your results in parts (a) and (b).

3. Consider the following finite-length sequence:

x(n) = { sinc2{(n - 50)/2}, 0 ≤ n ≤ 100;

         {    0,                       else.

a. Determine the DFT X(k) of x(n). Plot (using the stem function) its magnitude and phase.

b. Plot the magnitude and phase of the DTFT X(e) of x(n) using MATLAB.

c. Verify that the above DFT is the sampled version of X(e). It might be helpful to combine the above two plots in one graph using the hold function.

d. Is it possible to reconstruct the DTFT X(e) from the DFT X(k)? If possible, give the necessary interpolation formula for reconstruction. If not possible, state why this reconstruction cannot be done.

4. Let a finite-length sequence be given by:

x(n) = { 2e-0.9|n|, -5 ≤ n ≤ 5;

         { 0,           otherwise.

Plot the DTFT X(e) of the above sequence using DFT as a computation tool. Choose the length N of the DFT so that this plot appears to be a smooth graph.

5. Plot the DTFT magnitude and angle of each of the following sequences using the DFT as a computation tool. Make an educated guess about the length N so that your plots are meaningful.

a. x1 (n) = (0.6)|n|[u(n + 10) - u(n - 10)].
b. x2(n) = n(0.9)n, 0 ≤ n ≤ 20.
c. x3(n) = cos(0.5Πn) + j sin(0.5Πn), 0 ≤ n ≤ 50.
d. x(n) = {1, 2, 3, 4, 3, 2, 1}.
                         ↑
e. x(n) = (-1,-2,-3,0,3,2,1).
                          ↑

6. A 512-point DFT X(k) of a real-valued sequence x(n) has the DFT values:

X(0) = 20 + jα; X(5) = 20 + j30; X(k1) = -10 + j15; x(152) = 17 + j23;

X(k2) = 20 - j30; X(k3) = 17 - j23; X(480) = -10 - j15; x(256) = 30 + jβ;

And all other values are known to be zero.
a. Determine the real-valued coefficients α and β.
b. Determine the values of the integers k1, k2 and k3.
c. Determine the energy of the signal x(n).
d. Express the sequence x(n) in a closed form.

7. Compute the N-point circular convolution for the following sequences. Plot their samples.

a. x1(n) = sin(Πn/3)R6(n),   x2(n) = cos(Πn/4)R8(n);   N = 10
b. x1(n) = cos(2Πn/3)RN(n),   x2(n) = sin(2Πn/4)RN(n);   N = 32
c. x1(n) = (0.8)nRN(n),   x2(n) = (-0.8)nRN(n); N = 10
d. x1(n) = nRN(n),   x2(n) = (N - n)RN(n); N = 10
e. x1(n) = (0.8)nR20x2(n),   x2(n) = u(n) -u(n-40); N = 10

8. Let x(n) be a uniformly distributed random number between [-1,1] for 0 ≤ n ≤ 106.

Let

h(n) = sin(0.4Πn),        0 ≤ n ≤ 100

a. Consider the conv function, determine the output sequence y(n) = x(n)*h(n)

b. Consider the overlap and save method of block convolution along with the FFT algorithm to implement high speed block convolution. Using this approach, determine y(n) with FFT sizes of 1024, 2048 and 4096.

c. Compare these approaches in terms of the convolution results and their execution times.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M92533466
  • Price:- $50

Guranteed 36 Hours Delivery, In Price:- $50

Have any Question?


Related Questions in MATLAB

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As