Question: Problem Statement Write a Matlab code that will transform to/from all the attitude representations shown below: Direction Cosine Matrix [3x3 matrix] Euler Angles + sequence

Problem Statement Write a Matlab code that will transform to/from all the attitude representations shown below: Direction Cosine Matrix [3x3 matrix] Euler Angles + sequence [3 elements + sequence) Quaternions [4 elements] Principal angle and principal line [4 elements] . . The code should ask the user to input the attitude representation and desired transformation For example, based on the user input, a function Y = attpar(X, 1) will be called where X is the assigned input attitude and Y is the converted attitude. I is a transformation index. For instance, if I = 7, then X could be 2x3 matrix whose first row contains the three Euler angle while the second row specifies the sequence type and Y could be the direction cosine matrix. Work in groups of 3 to 4 students and make at least 20 transformations. Feel free to organize to code at your best convenience. Using built-in MATLAB functions to make the transformations is not allowed. Deliverables There is only one deliverable for this assignment. You have to upload to moodle or send the instructor an email the main MATLAB code and all function files you used to solve the problem. You will be graded based on the number and correctness of the transformations in addition to how user-friendly is your code (how easy it is to use your code for attitude transformations) Only one member of the group should submit the files. Problem Statement Write a Matlab code that will transform to/from all the attitude representations shown below: Direction Cosine Matrix [3x3 matrix] Euler Angles + sequence [3 elements + sequence) Quaternions [4 elements] Principal angle and principal line [4 elements] . . The code should ask the user to input the attitude representation and desired transformation For example, based on the user input, a function Y = attpar(X, 1) will be called where X is the assigned input attitude and Y is the converted attitude. I is a transformation index. For instance, if I = 7, then X could be 2x3 matrix whose first row contains the three Euler angle while the second row specifies the sequence type and Y could be the direction cosine matrix. Work in groups of 3 to 4 students and make at least 20 transformations. Feel free to organize to code at your best convenience. Using built-in MATLAB functions to make the transformations is not allowed. Deliverables There is only one deliverable for this assignment. You have to upload to moodle or send the instructor an email the main MATLAB code and all function files you used to solve the problem. You will be graded based on the number and correctness of the transformations in addition to how user-friendly is your code (how easy it is to use your code for attitude transformations) Only one member of the group should submit the files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
