ENME664_February_1_2010_Supplement

ENME664_February_1_2010_Supplement -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Dot Product of Two Vectors: c = a.b • MATLAB Syntax c = dot(a,b) • Description c = dot(a,b) returns the dot product of the vectors a and b, where a and b are each vectors with three elements Example >> a=[1 2 4]; >> b=[0 1 0]; >> c=dot(a,b) c = 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
• Cross Product of Two Vectors: c = axb • MATLAB Syntax c = cross(a,b) • Description c = cross(a,b) returns the cross product of the vectors a and b, where a and b are each vectors with three elements Example >> a=[1 2 4];
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> b=[0 1 0]; >> c=cross(a,b) c =-4 0 1 Vector Products & MATLAB Cross Product of Two Vectors: c = axb MATLAB Syntax c = cross(a,b) Description c = cross(a,b) returns the cross product of the vectors a and b, where a and b are each vectors with three elements Example for Symbolic Form >> syms omega1 omega2 omega3 c1 c2 c3 >> omega=[omega1 omega2 omega3]; >> c=[c1 c2 c3]; >> cprime=cross(omega,c) cprime = [ c3*omega2 - c2*omega3, c1*omega3 - c3*omega1, c2*omega1 - c1*omega2]...
View Full Document

This note was uploaded on 04/25/2011 for the course ENME 664 taught by Professor Staff during the Spring '08 term at Maryland.

Page1 / 3

ENME664_February_1_2010_Supplement -...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online