From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: mean direction
Date: Tue, 31 May 2011 09:07:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <is2b3o$bu9$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1306832824 12233 (31 May 2011 09:07:04 GMT)
NNTP-Posting-Date: Tue, 31 May 2011 09:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2348908
Xref: comp.soft-sys.matlab:729442

Hey everyone,

I need to calculate the mean direction from ocean current measurements.
I tried sth with "atan", but never got the result I was expecting (because of the timeseries plot). I expect sth like 300° but got sth like 120°...

What data do I have?
DIR (6768x1 double) 
Speed (6768x1 double) 
V (6768x1 double) 
U (6768x1 double) 

In hope someone can give me another look into this, cause I'm getting kind of confused about it... 

Thanks in advance!!