Answered step by step
Verified Expert Solution
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
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 commonStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started