Answered step by step
Verified Expert Solution
Question
1 Approved Answer
%In this activity you will find the cross product of two vectors in 3-space and apply appropriate %MATLAB commands to find the area of a
%In this activity you will find the cross product of two vectors in 3-space and apply appropriate %MATLAB commands to find the area of a parallelepiped (cross(), dot(), and abs()). %Recall that a vector is an ordered n-tuple which may be represented as a row or column vector. %Define the three vectors u=[3, 2, 1], v=[-1, 3, 0], and w=[2, 2, 5]. u = [3 2 1] v = [-1 3 0] w = [2 2 5] %Use the cross() command to find the cross product of vectors v and w. The cross product is only %defined for vectors in 3-space. ans1 = cross(v,w) %The volume of a parallelepiped determined by three vectors is the absolute value of the scalar %triple product of the three vectors. The abs() command finds the absolute value of its argument. %Find the volume of the parallelepiped defined by u, v, and w. ans2 = abs(dot(u,cross(v,w)))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started