Compute the DFS coefficients

Assignment Help MATLAB Programming
Reference no: EM131724778

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.

Reference no: EM131724778

Questions Cloud

Discuss an attacker interposes during key exchange : Man-in-the-Middle Attack: An attacker interposes during key exchange, acting as the client to the server and as the server to the client
What is the probability of answering exactly : Given a 12?-question ?true-false quiz, what is the probability of answering exactly 8 of the questions correctly by? guessing?
What will be your approximate house payment each month : Discuss, realistically, your professional aspirations and how you will attain them.
Briefly compare the data for the three countries you selecte : Briefly compare the data for the three countries you selected. Identify the types of additional information needed to make a final decision.
Compute the DFS coefficients : Fourier Series Compute the DFS coefficients of the following periodic sequences using the DFS definition and then verify your answers using MATLAB.
Discuss health insurance portability and accountability act : such as the Health Insurance Portability and Accountability Act (HIPAA) in the U.S. and similar laws in the U.K. encourage
Explain how benefits are communicated to employees : Explain how benefits are communicated to employees. Analyze the environmental factors that have influenced the compensation and benefits of the organization.
What is the definition of socioeconomic status : Based on the readings and presentation, what is the definition of socioeconomic status? Do you know someone who is from low SES families
Description of the cultural consideration : When you begin work with couples and families, you likely will conclude after only a few cases that all couples and families are different in at least a few way

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd