📄 exam1_3.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -