Question: Problem 1 / Recitation / MatlabGrader Write a function myDFT that performs the discrete Fourier transform for a signal ( y ( t )
Problem Recitation MatlabGrader
Write a function myDFT that performs the discrete Fourier transform for a signal yt sampled at regular time intervals. The function shall take as input the vector of times measurements were taken t and the vector of measured values y that should be periodic over the total time of measurement. As output the function shall provide the variable a representing a and the vectors a and b containing ak and bk from the discrete Fourier transform a does not include a which is returned in a separate variable In the function, perform two data consistency checks and call Matlab's error function error ; if either one fails. First, ensure that the vectors t and y have the same length and second they contain an odd number of points even number of unique points
Required submission:
well commented function source code submitted to Matlab Grader
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
