Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The reference frame transformation from the LVLH frame to the body frame is usually handled through the use of either Euler angles or quaternions.

 

The reference frame transformation from the LVLH frame to the body frame is usually handled through the use of either Euler angles or quaternions. (a) Write a function in MATLAB to convert Euler angles to quaternions. The name of the function must be e2q. It must take a 3x1 vector of Euler angles as input and output a 4x1 vector of quaternions. Use the function to convert the Euler angles in Table 1 to quaternions. Case 1 2 3 4 5 6 7 8 [] [O] 0 0 -90 90 Case 1 2 0 [] [] 0 -90 0 90 90 0 0 0 30 30 35 85 -125 -50 -155 113 -108 24 Table 1: Euler angles to be converted to quaternions. (b) Write a function in MATLAB to convert quaternions to Euler angles. The name of the function must be q2e. It must take a 4x1 vector of quaternions as input and output a 3x1 vector of Euler angles. Use the function to convert the quaternions in Table 2 to Euler angles. 30 -110 (c) Use the e2q function and the data in Table 1 to verify the output of your q2e function. Discuss any differences between the values in Table 1 and the output of your q2e function. 93 90 91 92 0.1976 0.8673 0.2626 0.3738 0.8500 -0.2505 0.4606 0.0521 Table 2: Quaternions to be converted to Euler angles.

Step by Step Solution

3.50 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

ANSWER Here alpha beta and gamma are theta 12 and 3 respecti... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Mechanical Engineering questions

Question

Give eye contact, but do not stare.

Answered: 1 week ago

Question

Give a correct name for a. (CH3)2CHCH2OCH2CH3 b. c. O- CH2CH2CH,

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago

Question

What is removed when a relation is converted from 1NF to 2NF?

Answered: 1 week ago