Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: cross product and mat lab

Subject: cross product and mat lab

From: Rufus Worrell

Date: 06 Feb, 2008 13:07:10

Message: 1 of 5

Hey guys I was wondering I have 3 vectors: a, b, c. now
finding the cross product of them on paper is straight
forward but how would mat lab do a x b .c and a.b x c if a =
(1,2,3), b = (4,5,6) and c = (7,8,9)

Thanks!

Subject: Re: cross product and mat lab

From: Rune Allnor

Date: 06 Feb, 2008 13:09:19

Message: 2 of 5

On 6 Feb, 14:07, "Rufus Worrell" <hollywoodba...@AOL.com> wrote:
> Hey guys I was wondering I have 3 vectors: a, b, c. =A0now
> finding the cross product of them on paper is straight
> forward but how would mat lab do a x b .c and a.b x c if a =3D
> (1,2,3), b =3D (4,5,6) and c =3D (7,8,9)
>
> Thanks!

help cross
help dot

Rune

Subject: Re: cross product and mat lab

From: Yumnam Kirani Singh

Date: 06 Feb, 2008 14:12:38

Message: 3 of 5

see help on cross and dot! I hope, you will easily solve your problem, if you think a little deeper.

Subject: Re: cross product and mat lab

From: Thomas Pieper

Date: 06 Feb, 2008 15:20:04

Message: 4 of 5

"Rufus Worrell" <hollywoodbatez@AOL.com> wrote in message
<focbdu$hvp$1@fred.mathworks.com>...
> Hey guys I was wondering I have 3 vectors: a, b, c. now
> finding the cross product of them on paper is straight
> forward but how would mat lab do a x b .c and a.b x c if
a =
> (1,2,3), b = (4,5,6) and c = (7,8,9)
>
> Thanks!

Hi,

dot(cross(a,b),c)

and

dot(a,cross(b,c))


should solve your homework. The result lies between -0.001
and +0.001 :-)


Cheers,

Thomas

Subject: Re: cross product and mat lab

From: Roger Stafford

Date: 06 Feb, 2008 16:17:02

Message: 5 of 5

"Rufus Worrell" <hollywoodbatez@AOL.com> wrote in message <focbdu$hvp
$1@fred.mathworks.com>...
> Hey guys I was wondering I have 3 vectors: a, b, c. now
> finding the cross product of them on paper is straight
> forward but how would mat lab do a x b .c and a.b x c if a =
> (1,2,3), b = (4,5,6) and c = (7,8,9)
>
> Thanks!
----------
  The quantities

 (a x b) . c
 (b x c) . a
 (c x a) . b
 a . (b x c)
 b . (c x a)
 c . (a x b)

all give the same value and they can all be evaluated as

 det([a;b;c])

  In your particular example the answer will be zero because a, b, and c are
linearly dependent, which is to say that they are coplanar. There is zero
volume in the parallelepiped formed by them.

Roger Stafford

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics