Path: news.mathworks.com!not-for-mail
From: "M K" <maha_k@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectors
Date: Wed, 12 Nov 2008 13:23:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gfelbm$cc9$1@fred.mathworks.com>
References: <gfejp2$od9$1@fred.mathworks.com> <gfekjc$46l$1@fred.mathworks.com>
Reply-To: "M K" <maha_k@mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226496182 12681 172.30.248.35 (12 Nov 2008 13:23:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Nov 2008 13:23:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1115780
Xref: news.mathworks.com comp.soft-sys.matlab:500378


Sorry I should re-phrase that. 

Calculating the aangle between two vectors. I did a search on this forum and found another thread which gave two ways of calculating it 

1) the usual acos(dot(A,B)/(norm(A)*norm(B))

2) angle = atan2(norm(cross(a,b)),dot(a,b));

I get different answers when I use these two ... Any help will be appreciated!