Question

matLab Calc 3 plot vector

Exercise 1 Use MATLAB to plot 2 vectors, a blue vector connecting the points P=(1,-3,5 ) and Q=(3,2,6 ) and an equivalent redExercise : a.) Compute dot(u,c) and dot(v,c) where u - [3 -5 11,v-[3 2 -2] and c-(8 9 21] . dot(u,c) Enter a short answer dot

Exercise 1 Use MATLAB to plot 2 vectors, a blue vector connecting the points P=(1,-3,5 ) and Q=(3,2,6 ) and an equivalent red vector which has as its initial point the origin, (0,0,0) a.) What commands define the points p and q? Select exactly one of the choices. р.[326];q-1-35); p-I1 -3 51iq (3 2 61 p-[5 -3 11iq [3 2 6] not listed b.) One or more of the following commands will plot the blue vector. Which ones are they? Select all that apply plot3 (11 3],I-3 2],15 6], 'b,grid plot3 ([p(1) q(1)],[p (2) q(2)] (p (3) q(3),'b').grid plot3 ([0 3], [0 21,[0 6], 'b'),grid c.) What command plots the equivalent red vector? Select exactly one of the choices. plot3 ([p(1) q(1), [p 2) q(2)J,Ip(3) q(3) ]),grid hold on, plot3 ( [ 0 q(1)-p( 1 ) ],[O q(2)-p(2)],[0g(3)-p ( 3 ) ],'r') hold on, plot (O q(1)-p(1),I0 q(2)-p(2)],10 q(3)-p(3)]) not listed d.) What does it mean for two vectors to be equivalent? (Note: "same direction" would necessarily imply being parallel, but the converse is not necessarily so.) Select exactly one of the choices. if they are parallel their magnitudes are the same their directions are the same their magnitude and direction are the same
Exercise : a.) Compute dot(u,c) and dot(v,c) where u - [3 -5 11,v-[3 2 -2] and c-(8 9 21] . dot(u,c) Enter a short answer dot(u,c)- dot(v,c)= . Enter a short answer dot(v,c)- What do your answers to dot (u,c) and dot(v.c) indicate? Select all that apply u and v are perpendicular u cv.c-o - that u and v are mutually i to c u«c-v«c=0 is mere coincidence and has no implications b.) Plot u in green, v in blue and c in red. Using view or the rotate tool, find a viewpoint which illustrates the relationship between u, v and c. Submit the gra Upload your image file here. Consult the manual for more information. Choose File no file selected
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Exercise 1

a) p=[1 -3 5], q=[ 3 2 6] ; option 2nd

b) option 1 and option 2

c) option 2

d) option 4

Code

p=[1 -3 5];
q=[3 2 6];
plot3([1 3],[-3 2],[5 6],'b'),grid
hold on,plot3([0,p(1)-q(1)],[0,p(2)-q(2)],[0,p(3)-q(3)],'r')

Output

2 -1 2 2 -3 -4 5 -2

Add a comment
Know the answer?
Add Answer to:
Exercise 1 Use MATLAB to plot 2 vectors, a blue vector connecting the points P=(1,-3,5 ) and Q=(3...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT