Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectors
Date: Wed, 12 Nov 2008 13:31:49 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 23
Message-ID: <gfels5$he3$1@fred.mathworks.com>
References: <gfejp2$od9$1@fred.mathworks.com> <gfekjc$46l$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226496709 17859 172.30.248.37 (12 Nov 2008 13:31:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Nov 2008 13:31:49 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:500380


"M K" <maha_k@mathworks.com> wrote in message <gfekjc$46l$1@fred.mathworks.com>...
> Can the Dot product of two vectors, A and B in Matlab be written as
> 
> dot(A,B)/norm(A)*norm(B)=cos(teta)
> 

First of all, if you have a new question, put it in a
new thread!

What is your question anyway?

The dot product of two vectors is just

  dot(A,B)

or if A and B are row vectors, then just

  A*B'

Are you trying to compute the cosine of the
angle between the vectors? Why not say it?

John