running mean of circular data (angles)
Mostrar comentarios más antiguos
Hi there
Im trying to do a running mean of a quite large wind-direction data-set but I'm having trouble finding solutions that work. Does anyone know of a simple solution?
Thanks in advance
1 comentario
Andrei Bobrov
el 5 de Oct. de 2011
>> doc mean
Respuesta aceptada
Más respuestas (2)
David Young
el 5 de Oct. de 2011
Have a look at
doc unwrap
Jakob Sievers
el 5 de Oct. de 2011
0 votos
4 comentarios
David Young
el 5 de Oct. de 2011
Could you say more about what the problem is? What's actually going wrong, that can't be solved with unwrap? Do you know how to do a running mean on non-circular data?
Jakob Sievers
el 5 de Oct. de 2011
David Young
el 5 de Oct. de 2011
Note that unwrap assumes your angles are in radians. If you're using degrees (and from the 360 in your code I think you are), multiply your data by pi/180 before using unwrap. You can convert back afterwards if necessary by multiplying by 180/pi.
Also, perhaps there's a problem with runmean. Maybe you could explain a little more about what this function does, or if it's very short even copy it into your question. (Not into a comment or answer though.)
Jakob Sievers
el 5 de Oct. de 2011
Categorías
Más información sobre Descriptive Statistics 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!