Path: news.mathworks.com!not-for-mail
From: "James " <burgattiveyron@hotmail.co.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Find angles between two vectors
Date: Thu, 14 May 2009 12:35:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <guh35m$mjk$1@fred.mathworks.com>
References: <fn7egt$447$1@fred.mathworks.com> <gtr7np$59d$1@fred.mathworks.com>
Reply-To: "James " <burgattiveyron@hotmail.co.uk>
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 1242304502 23156 172.30.248.35 (14 May 2009 12:35:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 14 May 2009 12:35:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1784494
Xref: news.mathworks.com comp.soft-sys.matlab:539881


copy this text to your matlab, the two lines c and d are my vectors,

clear all;
a%0*cos(20*(180/pi));
b%0*sin(20*(180/pi));
pax=[0 a];
pay=[0 0];
paz=[0 b];
c=line(pax,pay,paz);
sx=[a -30];
sy=[0 80];
sz=[b 135];
d=line(sx,sy,sz);

how do i find the angle between the lines c and d, my vectors are 3D so i'm unsure what to do