Cody

Problem 46731. Create nXn Fourier matrix

Solution 3192191

Submitted on 13 Oct 2020 by Tim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
N = 1; y_correct = 1; assert(isequal(dftMatrix(N),y_correct))

2   Pass
N = 3; ind = 0:(N-1); [k,n] = meshgrid(ind,ind); y_correct = exp(-j*2*pi*k.*n/N); assert(isequal(dftMatrix(N),y_correct))

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!