Create a MATLAB function that takes as input a sequence x of arbitrary length and calculates N equally spaced frequency samples of its DTFT. The first line of your function should be:
function X_dtft(x, N)
Be sure that your function works properly for both the case when N > M and N < M. You should use exactly one call to the MATLAB function fft for each input X.