⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dftmtx.m

📁 有关matlab的电子书籍有一定的帮助希望有用
💻 M
字号:
function b = dftmtx(n)
%DFTMTX Discrete Fourier transform matrix.
%   DFTMTX(N) is the N-by-N complex matrix of values around
%   the unit-circle whose inner product with a column vector
%   of length N yields the discrete Fourier transform of the
%   vector.  DFTMTX(LENGTH(X))*X is the same as FFT(X).
%
%   The inverse discrete Fourier transform matrix is
%   CONJ(DFTMTX(N))/N.   See also FFT and IFFT.

%   Author(s): C. Denham, 7-21-88
%   Copyright (c) 1988-98 by The MathWorks, Inc.
%   $Revision: 1.9 $  $Date: 1997/11/26 20:13:16 $

f = 2*pi/n;     % Angular increment.
w = (0:f:2*pi-f/2).' * i;   % Column.
x = 0:n-1;      % Row.
b = exp(-w*x);  % Exponentiation of outer product.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -