running mean of circular data (angles)
37 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jakob Sievers
il 5 Ott 2011
Commentato: Walter Roberson
il 7 Mag 2020
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
Risposta accettata
Mark Brandon
il 5 Ott 2011
You could look at the excellent "Circular Statistics Toolbox"
5 Commenti
Ana Soph
il 6 Mag 2020
- how can i use mean angle?
- M = xlsread('Dic2019','Dic2019mat')
- ten_minute_avarege = meanangle(reshape(M, 10, []), 'omitnan')
- xlswrite('datosexcel1.xlsx', ten_minute_avarege, 'Hoja1', 'A1');
Walter Roberson
il 7 Mag 2020
I am not aware of any meanangle() function that has 'omitnan' as an option.
Più risposte (2)
Jakob Sievers
il 5 Ott 2011
4 Commenti
David Young
il 5 Ott 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.)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!