Moving Avg calculation
古いコメントを表示
How does matlab calculate the initial points of a moving average? for example if my timeseries matrix TS is 10x1 and i want 2 and 5 period EMAS then movavg(TS, 2, 5, 'e') will return two 10x1 matrices even though the inital points in theory dont have enough samples to calculate the ema yet.
回答 (2 件)
Teja Muppirala
2011 年 6 月 24 日
One nice thing about MATLAB is that you can edit a lot of the functions to see what's inside.
edit movavg
The code is well documented so you should be able to see what's going on.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!