Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I ASKED FOR THE 2ND TIME .. MATLAB CODE PLEASE !!!!!!! Procedure: The DTFS is the only Fourier representation that is discrete valued in both

image text in transcribedI ASKED FOR THE 2ND TIME .. MATLAB CODE PLEASE !!!!!!!

Procedure: The DTFS is the only Fourier representation that is discrete valued in both time and frequency and hence is suited for direct MATLAB implementation. The built-in function fft( ) and ifft() are used to evaluate DTFS. Given a length N vector x representing one period of an N periodic signal x[n], then, X=ft(x)/N Produces a length N vector X containing the DTFS coefficients X[k]. Similarly, given DTFS coefficients in a vector X, the command X=ifft(X)N Produces a vector x that represents one period of the time-domain signal. 1. Consider the signal x[n]=1+sin(12n+83), find the DTFS coefficients as follows: >x=ones(1,24)+sin([0:23]pi/12+3pi/8);>x=fft(x)/24; 2. Examine the output X, write the mathematical representation of the coefficients. Note that MATLAB is using 1 instead of j for sqrt(-1). X[k]=1,0.4619j0.1913,0.4619+j0.1913,0,k=0k=1k=23otherwiseon0k23 3. Note that since X[k] has period of 24 , using indices 11k12 we may also write the answer by specifying one period as: X[k]=1,0.4619j0.1913,0.4619+j0.1913,0,k=0k=1k=1otherwiseon11k12 4. Using ifft(), reconstruct the time-domain signal and evaluate the first values of the reconstructed signal with the commands: >> xrecon=ifft (X) *24; >>recon(1:4); 6. Repeat the same above procedure for the signalx[n]=cos(30n)+sin(90n). Procedure: The DTFS is the only Fourier representation that is discrete valued in both time and frequency and hence is suited for direct MATLAB implementation. The built-in function fft( ) and ifft() are used to evaluate DTFS. Given a length N vector x representing one period of an N periodic signal x[n], then, X=ft(x)/N Produces a length N vector X containing the DTFS coefficients X[k]. Similarly, given DTFS coefficients in a vector X, the command X=ifft(X)N Produces a vector x that represents one period of the time-domain signal. 1. Consider the signal x[n]=1+sin(12n+83), find the DTFS coefficients as follows: >x=ones(1,24)+sin([0:23]pi/12+3pi/8);>x=fft(x)/24; 2. Examine the output X, write the mathematical representation of the coefficients. Note that MATLAB is using 1 instead of j for sqrt(-1). X[k]=1,0.4619j0.1913,0.4619+j0.1913,0,k=0k=1k=23otherwiseon0k23 3. Note that since X[k] has period of 24 , using indices 11k12 we may also write the answer by specifying one period as: X[k]=1,0.4619j0.1913,0.4619+j0.1913,0,k=0k=1k=1otherwiseon11k12 4. Using ifft(), reconstruct the time-domain signal and evaluate the first values of the reconstructed signal with the commands: >> xrecon=ifft (X) *24; >>recon(1:4); 6. Repeat the same above procedure for the signalx[n]=cos(30n)+sin(90n)

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_2

Step: 3

blur-text-image_3

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

Metal Air Batteries Principles Progress And Perspectives

Authors: Ram K. Gupta

1st Edition

1032282088, 978-1032282084

More Books

Students also viewed these Chemical Engineering questions

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago