acfplot.m

compute and plot estimate of the autocorrelation of an input sequence

You are now following this Submission

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.

Syntax:

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.

Cite As

Phillip M. Feldman (2026). acfplot.m (https://au.mathworks.com/matlabcentral/fileexchange/24065-acfplot-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0