DFT
程序员文章站
2022-03-19 13:16:50
...
function [Xk] = dft(xn,N)
% Compute DFT
% Xk = DFT coeff. array over 0<=k<=N-1;
% xn = N-point finite-duration sequence;
% N = Length of DFT
n = [0:1:N-1];
k = [0:1:N-1];
WN = exp(-1j*2*pi/N);
nk = n'*k;
WNnk = WN.^nk;
Xk = xn * WNnk;
end
function [xn] = idft(Xk,N)
% Compute DFS
% Xk = N-point sequence over 0<=k<=N-1;
% xn = One period of periodic signal over 0<=n<=N-1;
% N = length of DFT
n = [0:1:N-1];
k = [0:1:N-1];
WN = exp(-1j*2*pi/N);
nk = n'*k;
WNnk = WN.^(-nk);
xn = (Xk * WNnk)/N;
end
上一篇: 浅谈网站banner设计的那些事儿
下一篇: 用户体验:移动APP UI的底部导航设计
推荐阅读
-
MATLAB 离散傅里叶变换(DFT)、逆离散傅里叶变换(IDFT)、快速傅里叶变换(FFT)的实现
-
【射频】5G NR的CP-OFDM和DFT-s-OFDM对比
-
DFT栅栏效应之matlab示例
-
有限长离散变换(DFT)理解
-
使用 gnuplot 绘制离散序列以及 DFT 结果
-
硬盘扇区物理错误 用DFT“抢救”问题硬盘
-
「余姚中学 2019 联测 Day 2」Under Pressure(多项式类欧几里得,DFT)
-
MATLAB 离散傅里叶变换(DFT)、逆离散傅里叶变换(IDFT)、快速傅里叶变换(FFT)的实现
-
DFT
-
OpenCV-DFT最优尺寸cv::getOptimalDFTSize的设置