?? dft.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 + -