Question: Write a MATLAB code that ask users enter two vectors vec ( a ) and vec ( b ) in R ^ 3 as inputs
Write a MATLAB code that ask users enter two vectors veca and vec
b in R as inputs and it outputs five results:
Output : dot product vecavecb
Output : cross product veca x vecb
Output : smallest angle among vectors
Output : normal vector vecn as specified above
Output : shortest distance D as specified above
Consider the vectors a and b Answer the following questions:
Evaluate the dot product a b Show all your steps. mark
Evaluate the cross producta b Show all your steps. mark
Find the angle among the vectors using dot product. Show all your steps. mark
Find the angle among the vectors using cross product. Show all your steps. mark
Find the angle among the vectors using dot and cross products. Show all your steps. mark
Find a normal vector n to a plane that contains vec a and b has a direction ba and a magnitude of units. Show all your steps. mark
What is the shortest distance D between the heads of vectors vec a and b where these vectors are placed on the coordinate system in such a way that their tails coincide at the origin. Show all your steps. mark
Write a MATLAB code that ask users to enter two vectors overline a and b in mathbbR as inputs and it outputs five results:
Output : dot product overline ab
Output : cross product ab
Output : smallest an among vectors
Output : normal vector overline n as specified above
Output : shortest distance D as specified above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
