Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am having a hard time figuring out all 4 parts, and im not sure what im doing wrong. i need hep pls and we
I am having a hard time figuring out all 4 parts, and im not sure what im doing wrong. i need hep pls and we are using MATLAB
3A) (Magnitude/Unit Vector) Consider the two-dimensional vectors given below, then perform the indicatied opcrations. v1=a+2,b5v2=c+7,d15 Find the magnitude of v3=2v13v2 two different ways in MATL.AB: 1) using the distance definition with the square root, and 2) with the norm operation that is already built into MATL.AB. Declare these results P3A1 and P3A2. Next, find a unit vector in the direction of v4=v1+v2 and declare the result P3A3. 3B) (Algebraic Dot Product) Consider the same two-dimensional vectors v1 and v2. Find the dot product of these two vectors two different ways in MATLAB: 1) using the standard definition, where you multiply the first vector by the transpose of the second vector, and 2) with the dot operation that is already built into MATL.AB. Declare these results P3B1 and P3B2. 3C) (Geometric Dot Product) Consider the same two-dimensional vectors v1 and v2. Plot each of v1 and v2 on the same set of axes using hold on, both beginning at the origin (figure 5). Next, determine the angle between these two vectors using proper operations discussed from lecture(s). Declare the result P3C. 3D) (Cross Product) Consider the vectors given below, then perform the indicated operations. v5=2a+1,3b4,4c9v6=d10,d11,d12 Find the cross product of these two vectors in MATLAB using the cross operation that is already built into MATLAB. Declare the resuit as P3D1. Now, plot each of v5,v0, and their cross product on the same set of axes using quiver3 and hold on commands, all beginning at the origin (figure 6). Lastly, determine the area of the parallelogram formed by the vectors v5 and v6 using proper operations discussed in lecture(5). Declare the result P3D2. Note: you are not expected to plot a parallelogram in this part. Once you have these operations written in proper MATLAB syntax, go to your Editor menu and click Rum. If there are values in your Command Window for all operations without error messages, then your code has A=4
B=2
C=7
D=13
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