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

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
You know the right answer?
3. Matrices offer a very convenient and powerful way to describe the rotation of 3-dimensional vecto...
Questions
question
Business, 01.05.2022 14:00
question
English, 01.05.2022 14:00
question
Mathematics, 01.05.2022 14:00
Questions on the website: 13722367