Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 6 is attatched for reference. Please include as many code comments as possible for problem 5. Problem 5: Write a MATLAB function called compute_dft.m

image text in transcribed

Problem 6 is attatched for reference. Please include as many code comments as possible for problem 5.

Problem 5: Write a MATLAB function called compute_dft.m to compute the DFT of a given discrete signal, f[n]. The discrete signal should be the input, and the DFT (FPD should be the output. Test your function by comparing with the results of MATLAB's fft in problem 6 lem, first think abo plots to look like. (Think about the GIF from class.) Compute the DFT for ya(t) from problem 4, and use MATLAB's stem function to plot the magnitude of the DFT as a function of regular frequeney. Use 4 different samplings of ys(t): a) t = 0 : 0.01 : 87 b) t= 0 : 0.01 : 12m, c) 0:0.01 : 16T, d) t 0 : 0.01 : 607 Interpret your results what do the plots have in common? Problem 5: Write a MATLAB function called compute_dft.m to compute the DFT of a given discrete signal, f[n]. The discrete signal should be the input, and the DFT (FPD should be the output. Test your function by comparing with the results of MATLAB's fft in problem 6 lem, first think abo plots to look like. (Think about the GIF from class.) Compute the DFT for ya(t) from problem 4, and use MATLAB's stem function to plot the magnitude of the DFT as a function of regular frequeney. Use 4 different samplings of ys(t): a) t = 0 : 0.01 : 87 b) t= 0 : 0.01 : 12m, c) 0:0.01 : 16T, d) t 0 : 0.01 : 607 Interpret your results what do the plots have in common

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

More Books

Students also viewed these Databases questions

Question

What is computer neworking ?

Answered: 1 week ago