acfplot.m
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 (2024). acfplot.m (https://www.mathworks.com/matlabcentral/fileexchange/24065-acfplot-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Exploration and Visualization >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |