subject
Engineering, 12.03.2020 06:03 alialoydd

3. Matrices offer a very convenient and powerful way to describe the rotation of 3-dimensional vectors in space. Specifically, the three matrices that describe the rotation of a 3D vector R counter-clockwise by angles α, β, and γ about the X, Y , and Z axes, respectively, are given by cos β 0 sin β 0 1 0 sinB 0 cos P cos γ -sin Sin cos γ 0 Thus, to rotate a vector R counter-clockwise by an angle B about the Y axis, we perform the matrix-vector multiplication to obtain the rotated vector R'. Similarly, if we want to rotate the vector R counter-clockwise by an angle γ about the Z axis, and then counter-clockwise by an angle β about the Y axis, we perform the matrix-vector multiplication In component form, we can write out these matrix multiplications as 3 Write a MatLab program that asks the user to enter a 3D column vector R as well as a desired rotation angle about the Z axis and a desired rotation angle about the Y axis. The program must use nested for loops to calculate and print out the components of the new rotated column vector R. You may not use MatLab's built-in matrix multiplication operator (* or the sum(O function for this program. Instead vou should use a nested for loop to nultiply the matrix (a) To test your program, it's very useful to be able to visualize the result. If your input vector is named R and your rotated vector is named Rot, adding the following code to your program will produce a 3-D plot of the two vectors: plot3(x, Y, Z, '-g*') axis ([-3 3 -3 3 -3 3]); grid on; hold on xlabel'X axis') ylabel('Y axis); zlabel('Z axis) plot3(X, Y, Z, '-ro) legend 'R', 'RIprime') hold off You can then visually check that your program is doing the right thing by rotating a vector about the Z axis only by a small amount (say 20°), or rotating it about the Y axis only by a small amount. Note that you can look at the 3-D plot from any desired viewpoint by clicking on the "Rotate 3D" icon in toolbar of the plot window, and then dragging the mouse around within the window (b) Hand in a printout that shows the result obtained for the column vector R 1.3; 1.4; 15] 30° and then clockwise about the Y when it is rotated clockwise about the Z axis by y- axis by B-45°.

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, settasav9641
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
image
Engineering, 04.07.2019 18:20, alexis9263
Have a greater impact on maintenance productivity than any other support group. (clo5) a)-the top management b)-inventory and purchasing c)-sub-contracting d)-cmms
Answers: 2
image
Engineering, 04.07.2019 19:10, nayi2002
The short distance from the objective lens to the object causes problems at high magnification. which of the following is the most serious? a. cleaning the object surface b. positioning the object c. reflection from the object surface. d. illumination of the object
Answers: 1
image
Engineering, 04.07.2019 19:20, Katmcfee7681
Acommercial grade cubical freezer, 4 m on a side, has a composite wall consisting of an exterior sheet of 5.0-mm thick plain carbon steel (kst= 60.5 w/m k), an intermediate layer of 100-mm thick polyurethane insulation (kins 0.02 w/m k), and an inner sheet of 5.0- mm thick aluminium alloy (kal polyurethane insulation and both metallic sheets are each characterized by a thermal contact resistance of r 2.5 x 104 m2 k/w. (a) what is the steady-state cooling load that must be maintained by the refrigerator under conditions for which the outer and inner surface temperatures are 25°c and -5°c, respectively? (b) for power saving purpose, which wall material should be increased/reduced in. thickness in order to reduce 50% of the cooling load found in part (a)? redesign the thickness of the proposed material. 177 w/m-k). adhesive interfaces between the q=575.93 w
Answers: 2
You know the right answer?
3. Matrices offer a very convenient and powerful way to describe the rotation of 3-dimensional vecto...

Questions in other subjects:

Konu
Social Studies, 09.06.2021 19:30
Konu
Mathematics, 09.06.2021 19:30
Konu
Business, 09.06.2021 19:30