Question: Write and test an implementation of the direct DFT matrix-vector multiplication based on Matlabs polyval function instead of explicitly building the matrix Fn as in

Write and test an implementation of the direct DFT matrix-vector multiplication based on Matlabs polyval function instead of explicitly building the matrix Fn as in dft_direct.m

dft_direct.m:

function x = dft_direct(x)

n = length(x);

z = exp(complex(0,-1)*2*pi*(0:n-1)/n);

F = vander(z); % the columns of the Vandermonde matrix are inverted compared to Fn

x = F*x(end:-1:1);

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 Databases Questions!