In this solution some predefined matlab functions are used. For more information, refer to matlab online library or drop a comment below. Please give a Thumbs Up, if solution is helpful.
Solution :
The code for the required task is given below along with the test results for the given input
Matlab Code :
clear;
clc;
a = input('Please Enter the value for
Alpha (in degree) : ');
b = input('Please Enter the value for Beta (in degree)
: ');
a1 = pi*a/180; % converting to radians
b1 = pi*b/180; % converting to radians
C3 = angle2dcm(a1,a1,a1); % Three axis
Rotation
C1 = angle2dcm(b1,0,0); % One axis Rotation
D = C1*C3; % Product D
fprintf('\n The Results are as follows : \n')
fprintf('\n Angle
Alpha = ')
disp([num2str(a),' Degree'])
fprintf('\n Angle
Beta = ')
disp([num2str(b),' Degree'])
fprintf('\n DCM
C3(a) = ')
C3
fprintf('\n DCM
C1(b) ')
C1
fprintf('\n Product D
(C1*C3) = ')
D
Test Results :
NOTE : Feel free to ask further queries. Your positive rating would be appreciated and motivate me !
please use matlab Write a computer program that takes as input two (2) rotation angles a and B (in degrees), and th...
Please use matlab to code this program. Write a computer program that takes as input an angle β and the components of a position vector in frame A (i.e. r). 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.rB. Your code should output all of the following, including a label and units (if applicable) for each: CAB 4.8...