Question: Write a MATLAB script that takes as input an angle B and the components of a position vector in frame A (i.e., 74). The transformation

Write a MATLAB script that takes as input an angle B and the components of a position vector in frame A (i.e., 74). The transformation from frame A to frame B is a rotation about the 1-axis. Your code should calculate the DCM CAB, and the components of the vector in frame B (i.e., FB). It should output all of the following, including a label for each item: B, CAB, FA, and FB and appropriate units (radians, degrees, meters, km, etc.). (8,225) Use these input values: = 0.45 rad. and FA = {1,669 (km) (521.7) Include a copy of all your m-files and outputs. Keep these functions and scripts since you will need them for future assignments. Write a MATLAB script that takes as input an angle B and the components of a position vector in frame A (i.e., 74). The transformation from frame A to frame B is a rotation about the 1-axis. Your code should calculate the DCM CAB, and the components of the vector in frame B (i.e., FB). It should output all of the following, including a label for each item: B, CAB, FA, and FB and appropriate units (radians, degrees, meters, km, etc.). (8,225) Use these input values: = 0.45 rad. and FA = {1,669 (km) (521.7) Include a copy of all your m-files and outputs. Keep these functions and scripts since you will need them for future assignments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
