www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ExploringTheLatencyOfTheHDLIFFTObjectExample.m

    %% Exploring the Latency of the HDLIFFT Object
hdlifft = dsp.HDLIFFT('FFTLength',512);
L512 = getLatency(hdlifft)
%%
% Request hypothetical latency information about a similar object with a
% different FFT Length. The properties of the original object do not
% change. When you do not specify a vector length, the function assumes
% scalar input data. 
L256 = getLatency(hdlifft,256)
N = hdlifft.FFTLength
%% 
% Request hypothetical latency information of a similar object that accepts 
% 8-sample vector input. 
L256v8 = getLatency(hdlifft,256,8)
%% 
% Setting Normalize to true does not change the latency. 
hdlifft.Normalize = true;
L512n = getLatency(hdlifft)
%%
% Setting BitReversedOutput to false increases the latency because the
% object must collect the output before reordering. 
hdlifft.BitReversedOutput = false;
L512r = getLatency(hdlifft)