dft.m
来自「matlab在电力电子技术仿真中运用」· M 代码 · 共 18 行
M
18 行
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 + =
减小字号Ctrl + -
显示快捷键?