Represent continuous-time and discrete-time signal

Assignment Help MATLAB Programming
Reference no: EM133124379

Fourier Representation Using MATLAB

The purpose of this lab is to use MATLAB to represent continuous-time and discrete-time signal using Fourier series for periodic signals and Fourier transform for aperiodic signals.

1. Fourier Series Representation of Periodic Signals

For a periodic signal x(t) with period T0, we have shown that it can be expressed as a sum of com-plex exponential signals. For example, if x(t) is continuous-time, its Fourier series representation is

x(t) = Σk=−∞+∞ Dkejkω0t

where the Fourier series coefficients ak are given by

Dk = -1/T0T0 x(t) e-jkω0tdt

In practice, x(t) is approximated by truncating the summation to include only the first N har-monics. That is,

X(t) ≈x·(t) = Σk=−NN Dkejkω0t

Similarly, when x(t) is discrete-time, its Fourier series representation is

x[n] = Σk=<N0> Dkejkω0t

where the Fourier series coefficients Dk are given by

Dk = 1/N0n=<N0> x(n)e-jkω0n

Let's take for example the following periodic signal

x(t) = 1, -Π/2 ≤ t < Π/2
x(t) = 0, Π/2 ≤ t < 3Π/2

and To = 2Π.

From the leacture, the Fourier series coefficients of x(t) we given by

Dk = 0.5, k = 0
Dk = 1/kΠ sin(kΠ/2), k ≠ 0

The code below can be used to plot x(t) using its truncated Fourier series when N = 20 as well as its Fourier spectra |Dk| and ∠Dk.

2477_Fourier Representation2.jpg

1.1. Task 1

Repeat the exercise above for N = 5, N = 11, and N = 99 and comment on the results.

2. Numerical Computation of Dk

So far, we assumed we know the Fourier series coefficients of the signal. Now, we will use the function fft (Fast FourierTra sfonn) in MATLAB to approximate the exponential Fourier spectra of the signal.

Let's take for example the periodic signal

x(t) = e-0.5t, 0 ≤ t ≤ Π
and T0 = Π.

Without deriving the expresaion for Dk the code below can he used to plot the. Fourier spectra |Dk| and ∠Dk of x(t).

2252_Fourier Representation.jpg

Task 2
Repeat the exercise above for the periodic signal below.

x(t) = 0.5t, 0 ≤ t ≤ 2
and T0 = 2.

3. Fourier Transform Representation of Aperiodic Signals
For a continuous-time signal x(t), we have shown that its frequency-domain representation is given by the Fourier transform X(jω) such that

X(jω) = -∞+∞ x(t) e-jωt.dt

and the inverse Fourier transform is

X(t) = 1/2Π -∞+∞ X(jω) ejωt

The function fft in MATLAB can also be tried to find the Fourier transform representation of aperiodic signals.

Let's take for example the following periodic signal

x(t) = e-2t, t ≥ 0

From the lecture, the Fourier transform of x(t) is given by

X(jω) = 1/(2+jω) → |x(jω)| = 1/√(4+ω2) and ∠X(jω) = -tan-1(ω/2)

Now, let's confirm that result using the following code.

677_Fourier Representation1.jpg

Task 3

Repeat the exercise above for the signal below.

x(t) = 1 - 2 e-0.5t, t > 0

Reference no: EM133124379

Questions Cloud

Standard new keynesian model : Discuss how incorporating a participation decision into a standard New Keynesian model with matching frictions show that market tightness becomes endogenously m
Explain the health screening facility : Christmas shoppers pass through the health screening facility as they enter the shopping mall. It is estimated that the average crossing rate to the facility is
Pros and cons of the federal government : -Discuss the pros and cons of the federal government's plan to subsidize child day care across Canada
What is expected spending : What is your expected spending? Would you be willing to purchase health insurance coverage for $6,250? Why or why not?
Represent continuous-time and discrete-time signal : Use MATLAB to represent continuous-time and discrete-time signal using Fourier series for periodic signals and Fourier transform for aperiodic signals
Expected returns of project a and project b : a. Assume that startup funds are financed at 10%. Assume that if the borrower defaults there is no penalty. What are the expected returns of project A and proj
World largest donor of development assistance : Give the correct answer with detailed explanation and don't copy from internet.
Understate the effective rate of protection : 3.? Is it possible for a low nominal tariff rate to understate the effective rate of protection? What is tariff escalation?
What is market equilibrium : 1. What is Market Equilibrium, how can it be achieved? What are its uses?

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