Problem 1 (50 pts): Do the Matlab programming required in problem 3 of the initi
ID: 2267877 • Letter: P
Question
Problem 1 (50 pts): Do the Matlab programming required in problem 3 of the initial assessment quiz. For full credit, the work turned in should include: L. G0pa) The codeliting containing Malib cmns ht were nun h oet answer. (Comment lines and clarity are a plus.) 2. ( 10 pts) A list of the variables produced in running the code, obtained by using the Matlab "who" command. 3. (10 pts) Demonstration that the correct answer was produced. (Display the result using a screen shot of the Matlab command window corresponding to the code that produced the result.) 4. (10 pts) The complete solution to this problem should neatly fit on a single 8 ½" by 11" sheet of paperExplanation / Answer
There is no direct way to do this question in matlab. But we can find the norm of the cross product and dot product and then find the four quadrant inverse tangent in degrees.
>> R1=[1 2 1];
>> R2=[5 0 0];
>> ThetaInDegrees = atan2d(norm(cross(R1,R2)),dot(R1,R2))
ThetaInDegrees =
65.9052
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.