Moving Avg calculation

조회 수: 5 (최근 30일)
Jim
Jim 2011년 6월 23일
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개)

Sean de Wolski
Sean de Wolski 2011년 6월 23일
It's fairly well explained in
doc movavg
I would recommend using conv anyway. example thread
  댓글 수: 1
Jim
Jim 2011년 6월 23일
now sure what you mean by well explained. Doc was first place i checked, and it doesnt seem to go into any detail as far as how its calculated unless im overlooking something?

댓글을 달려면 로그인하십시오.


Teja Muppirala
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.
  댓글 수: 1
Jim
Jim 2011년 6월 24일
thank you i had no idea!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by