97 views (last 30 days)

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

Mark Brandon
on 5 Oct 2011

You could look at the excellent "Circular Statistics Toolbox"

Sign in to comment.

Jakob Sievers
on 5 Oct 2011

David Young
on 5 Oct 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.)

Sign in to comment.

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 1 Comment

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/17491-running-mean-of-circular-data-angles#comment_38720

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/17491-running-mean-of-circular-data-angles#comment_38720

Sign in to comment.