Code covered by the BSD License  

Highlights from
acfplot.m

4.0

4.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 2.05 KB File ID: #24065

acfplot.m

by Phillip M. Feldman

 

10 May 2009

compute and plot estimate of the autocorrelation of an input sequence

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
24 Feb 2010 Matthias

Nice script which produces an autocorrelation plot! Exactly what I needed. Be awrae that it needs autocov.m by the same author. Also line 70 needs a small modification from "fig(0.8, 0.6);" to e.g. "figure"

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
autocorrelation Phillip M. Feldman 11 May 2009 10:51:55
correlation Phillip M. Feldman 11 May 2009 10:51:55
time series Phillip M. Feldman 11 May 2009 10:51:55
statistics Phillip M. Feldman 11 May 2009 10:51:55
automutual information D.K. Ravish Bangre 19 Feb 2011 23:30:54
average mutual information D.K. Ravish Bangre 09 May 2011 13:56:21

Contact us at files@mathworks.com