acfplot calls autocov() to compute an extimate of the autocorrelation function (acf) of the input vector Y, and then plots the acf with the time axis labeled in units of either seconds or ms. Note: This function does not use the Statistics Toolbox.
acf= acfplot(Y, Fs, maxlag, titlestr)
Y is a column vector containing a sequence of samples. The remaining input arguments are optional. Fs specifies the sampling rate (samples per second); the default is 1. maxlag is the maximum lag for which the autocorrelation is to be computed; if no value is specified, a default value is generated by the function autocov. titlestr specifies a title to be printed at the top of the plot; the default is a null string.
Phillip M. Feldman (2021). acfplot.m (https://www.mathworks.com/matlabcentral/fileexchange/24065-acfplot-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!