Moving average
Mostrar comentarios más antiguos
Greetings,
I have a 3000x1 matrix and I want make it 30x1 matrix by taking average from each 100 values. Is there any simple command or way to do that.
Your help is highly appreciated.
Thanks and regards Shafi
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 26 de Oct. de 2011
I believe people have suggested something like
conv(x,ones(30,1))
I haven't tried that myself. (I am not from a signals processing background, so I tend to instead code it in terms of cumsum() )
1 comentario
Shafi
el 26 de Oct. de 2011
Categorías
Más información sobre Simulink 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!