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

📄 dft.m

📁 matlab在电力电子技术仿真中运用
💻 M
字号:
function output = dft(input)

%Direct computation of DFT
%usage: y=dft(x);

l=length(input);
output=zeros(1,l);				%construct empty output matrix

for i=1:l
   for k=1:l
      output(i)=output(i)+input(k)*exp(-j*2*pi/l*(k-1)*(i-1));	
   end								%compute from formula
end

%David Phillips 09507351
%Curtin University Linear Systems 202
%23 October 2000

⌨️ 快捷键说明

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