exam1_3.m
来自「基2ditfft的matlab源程序」· M 代码 · 共 16 行
M
16 行
function t=exam1_3(xn,N)
%this function calculate the elapsed seconds of
%the function of fft and ditfft.
%the argument 'xn'is the sample sequence input.
%the argument 'N'is the length of the sample sequence input.
%N=32768/2; xn=[0 1 2 3 4 5 6 7];
if length(xn)<N
xn=[xn,zeros(1,N-length(xn))];
end
yn=xn;
tic
fft(xn,N);
t(1)=toc;
tic
ditfft(yn,N);
t(2)=toc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?