| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Signal Processing Toolbox |
| Contents | Index |
| Learn more about Signal Processing Toolbox |
A = dftmtx(n)
A discrete Fourier transform matrix is a complex matrix of values around the unit circle, whose matrix product with a vector computes the discrete Fourier transform of the vector.
A = dftmtx(n) returns the n-by-n complex matrix A that, when multiplied into a length n column vector x.
y = A*x
computes the discrete Fourier transform of x.
The inverse discrete Fourier transform matrix is
Ai = conj(dftmtx(n))/n
In practice, the discrete Fourier transform is computed more efficiently and uses less memory with an FFT algorithm
x = 1:256; y1 = fft(x);
than by using the Fourier transform matrix.
n = length(x);
y2 = x*dftmtx(n);
norm(y1-y2)
ans =
1.8297e-009
dftmtx takes the FFT of the identity matrix to generate the transform matrix.
![]() | dfilt.statespace | digitrevorder | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |