www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/AutocorrelationForPositiveLagsExample.m
%% Autocorrelation Of a Number Sequence %% % *Note*: This example runs only in R2016b or later. If you are using an % earlier release, replace each call to the function with the equivalent % |step| syntax. For example, myObject(x) becomes step(myObject,x). %% hac1 = dsp.Autocorrelator; % x is a column vector x = [1:100]'; y = hac1(x);