This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full 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.
- Spring '08