Autocor: Difference between revisions
Jump to navigation
Jump to search
imported>Neal |
imported>Neal |
||
Line 11: | Line 11: | ||
acor = autocor(x,n) returns the autocorrelation function (acor) of a time series (x) for a maximum time shift of (n) sample periods. | acor = autocor(x,n) returns the autocorrelation function (acor) of a time series (x) for a maximum time shift of (n) sample periods. | ||
acor = autocor(x,n,''period'') uses the sampling period (period) to scale the x-axis on the output plot. (period) can be empty []. | acor = autocor(x,n,''period'') uses the sampling period (period) to scale the x-axis on the output plot. (period) can be empty [ ]. | ||
The optional input (plots) suppresses plotting if set to 0. | The optional input (plots) suppresses plotting if set to 0. |
Latest revision as of 12:13, 25 September 2008
Purpose
Calculates the autocorrelation function of a time series.
Synopsis
- acor = autocor(x,n,period,plots)
Description
acor = autocor(x,n) returns the autocorrelation function (acor) of a time series (x) for a maximum time shift of (n) sample periods.
acor = autocor(x,n,period) uses the sampling period (period) to scale the x-axis on the output plot. (period) can be empty [ ].
The optional input (plots) suppresses plotting if set to 0.