I am currently running into the issue where the first set of values within the length of the moving average window is assigned as NaN. I believe this issue is of similar nature to a different post http://www.mathworks.com/matlabcentral/answers/92471-why-do-i-receive-nan-values-when-i-use-the-tsmovavg-function-in-the-financial-time-series-toolbox-2 but with Financial Toolbox 5.6 rather than Financial Time Series Toolbox 2.1. I am running R2015b with the trial version of the Financial Toolbox 5.6.
MATLAB: Do I receive NaN values with the tsmovavg function from Financial Toolbox 5.6
Financial Toolboxmoving averagetsmovavg
Related Question
- How to force nansum(NaN+ NaN) = NaN, not 0
- Subtract two matrices each with NaN values in different cells
- Where did the “lead” and “pivot” parameters for TSMOVAVG go in the Financial Time Series Toolbox 2.1 (R14)
- How to calculate a mean value of a vector and ignore from the “0” when appears inside the vectors
- Is there an error in the documentation for the TSMOVAVG function from the Financial Time Series Toolbox 2.0 (R13)
Best Answer