dtft.m
来自「包含有各种各样的数字信号处理经典算法源代码,很有用的.」· M 代码 · 共 21 行
M
21 行
% dtft.m - DTFT of a signal at a frequency vector w%% X = dtft(x, w);%% x = row vector of time samples% w = row vector of frequencies in rads/sample% X = row vector of DTFT values%% based on and replaces both dtft.c and dtftr.cfunction X = dtft(x, w)[L1, L] = size(x);z = exp(-j*w);X = 0;for n = L-1:-1:0, X = x(n+1) + z .* X;end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?