Question: 3 . a ) Write a similar function, which converts a rotation matrix to Unit Quaternions Q = { } . Use the following format

3. a) Write a similar function, which converts a rotation matrix to Unit Quaternions
Q={}. Use the following format for your code:
function Rot2UQuater(RotMatrix)
.
.
.
Your Code
.
.
.
display results [Eta (scalar) and Esp (vector)]
Hint: Be careful when using the MATLAB sign(x) function for this question. In
particular, what should the value of sign(0) be?(-1,0, or 1)
b) Provide the results for the above rotation matrices Rot4, Rot5, and Rot6.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!