Question: Problem 1 / Recitation / MatlabGrader Write a function myDFT that performs the discrete Fourier transform for a signal ( y ( t )

Problem 1/ Recitation / MatlabGrader
Write a function myDFT that performs the discrete Fourier transform for a signal \( y(t)\) 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 0 representing \( a_{0}\) and the vectors a and b containing \( a_{k}\) and \( b_{k}\) from the discrete Fourier transform (a does not include \( a_{0}\) 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
Problem 1 / Recitation / MatlabGrader Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!