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

📄 dtft.m

📁 this file consists of many matlab programs
💻 M
字号:
% dtft.m - DTFT of a signal at a frequency vector w
%
% X = dtft(x, w);
%
x = input('row vector of time samples')
w = input('row vector of frequencies in rads/sample');
X = input('row vector of DTFT values')
function 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -