Question: Write a computer program that takes as input 2 rotation angles alpha and beta (in degrees) and calculates the DCMs C_3(alpha) and C_1(beta) corresponding to

Write a computer program that takes as input 2 rotation angles alpha and beta (in degrees) and calculates the DCMs C_3(alpha) and C_1(beta) corresponding to a rotation about the 3-axis and a rotation about the l-axis, respectively. Then calculate the product D = C_1, C_3. The program should output the following - ALL labeled with their names, and units (if any): (a) the input angles (b) C_1, C_3 and D. Example (partial) output from Matlab: alpha 125.0 deg. beta = 75 deg. C_1 = 1.0000 0.0000 0.0000 0 0000 0.2588 0.9569 0.0000 -0.9659 0.2588 Run the code for the case alpha = 125 deg, and beta = 75 deg. Hand in a printed copyo of the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
