Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2. Approximation of a signal using Fourier Series Solve the following exercise using MATLAB This exercise implements the solution which is given in Example

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Exercise 2. Approximation of a signal using Fourier Series Solve the following exercise using MATLAB This exercise implements the solution which is given in Example 3.5 (see the pictures uploaded, those named Example 3.5 page 1,2 and 3"), from the Signals and Systems textbook. We approximate a box signal using finite number of Fourier coefficients. a) Write the function [ak,k] squareWaveFourier(T1, T, N) that calculates the Fourier coefficients ak, for k--N:N, where T1 is the size of the box and T is the period. Draw the coefficients for 4 examples of N, T1 and T b) Use Equation 3.47 (see the picture named "Equations"), to reconstruct the signal x(t) using xv(t). You will need to define a "time vector"(ideally the signal is continuous but we only have a finite number of elements to work with in the computer.) For example, let the vector tt-T/2:0.001:T/2. Draw the approximated wave for the values of N, T1 and T that are given in Figure 3.9 (see the picture named Figure 3.9"). Also, draw the signal x(t) for comparison. Explain how well x^(t) approximates x(t) for each figure. c) Is the signal x^(t) real or not? Why? d) Draw the error En that is given in Equation 3.49 (see the picture named "Equations"), for N-10:10:1000. You need to implement the integral using a sum Exercise 2. Approximation of a signal using Fourier Series Solve the following exercise using MATLAB This exercise implements the solution which is given in Example 3.5 (see the pictures uploaded, those named Example 3.5 page 1,2 and 3"), from the Signals and Systems textbook. We approximate a box signal using finite number of Fourier coefficients. a) Write the function [ak,k] squareWaveFourier(T1, T, N) that calculates the Fourier coefficients ak, for k--N:N, where T1 is the size of the box and T is the period. Draw the coefficients for 4 examples of N, T1 and T b) Use Equation 3.47 (see the picture named "Equations"), to reconstruct the signal x(t) using xv(t). You will need to define a "time vector"(ideally the signal is continuous but we only have a finite number of elements to work with in the computer.) For example, let the vector tt-T/2:0.001:T/2. Draw the approximated wave for the values of N, T1 and T that are given in Figure 3.9 (see the picture named Figure 3.9"). Also, draw the signal x(t) for comparison. Explain how well x^(t) approximates x(t) for each figure. c) Is the signal x^(t) real or not? Why? d) Draw the error En that is given in Equation 3.49 (see the picture named "Equations"), for N-10:10:1000. You need to implement the integral using a sum

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago