Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1306832824 12233 172.30.248.35 (31 May 2011 09:07:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 May 2011 09:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2348908
Xref: news.mathworks.com 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!!