Problem with movavg "Not enough input arguments."
Mostrar comentarios más antiguos
Hello I am trying to calculate movavg as:
[lead,lag]=movavg(close,5,30);
I have the following:
Error using movavg (line 7) Not enough input arguments.
So if I try:
[lead,lag]=movavg(close,5,30,0);
I have:
Error using movavg (line 8) This function only supports exponential moving averages
So it only works if I use the following:
[lead,lag]=movavg(close,5,30,'e');
...BUT I want simple moving averages not exponential!!
This is strange since the syntax of the function is the following:
movavg(Asset, Lead, Lag, Alpha) [Short, Long] = movavg(Asset, Lead, Lag, Alpha)
Anybody can help me?
1 comentario
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Correlation and Convolution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!