Is there an error in the documentation for the TSMOVAVG function from the Financial Time Series Toolbox 2.0 (R13)?
2 views (last 30 days)
Show older comments
I am using the following syntax:
tsmovavg(x,'s',LEAD,LAG,DIM),
where lead and lag refers to number of previous and following data points.
The documentation, however, says:
LEAD: Number of following data points
LAG: Number of previous data points
Accepted Answer
MathWorks Support Team
on 20 Jan 2010
This bug has been fixed for Release 14 (R14). For previous releases, there is an error in the documentation and the help section in the program file.
LEAD and LAG actually refer to number of previous and following data points, respectively.
The documentation should read:
output = tsmovavg(vector, 's', lag, dim) compute the simple moving average. lag indicates the number of previous data points used in conjunction with the current data point when calculating the moving average.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!