Question

3) Given the following quaternions, calculate the equivalent DCM matrices, 3-2-1 Euler Angle Sequences, and resulting rotated

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given quaterions are

a.) q=[0.7071, 0, 0, 0.7071]

b.) q=[0, 0.7071, 0, 0.7071]

c.) q=[0, 0, 0.7071, 0.7071]

d.) q=[-.7071, 0, 0, 0.7071]

a.) q=[0.7071, 0, 0, 0.7071]                      

  • Equivalent DCM Matrices for given quaterion :

         0    1.0000         0
   -1.0000      0            0
         0         0    1.0000

  • 3-2-1 Euler Angle Sequence for given quaterion :

1.57079632679490   0   0

  • Resulting Rotating vector v2 after rotaing vector v1=[1,0,0] for given quaterion :

0   -1.00000000000000   0

b.) q=[0, 0.7071, 0, 0.7071]

  • Equivalent DCM Matrices for given quaterion :

         0         0    1.0000
         0   -1.0000         0
    1.0000       0           0      

  • 3-2-1 Euler Angle Sequence for given quaterion :

0   -1.57079632679490   0

  • Resulting Rotating vector v2 after rotaing vector v1=[1,0,0] for given quaterion :

0   0   1.00000000000000

c.) q=[0, 0, 0.7071, 0.7071]

  • Equivalent DCM Matrices for given quaterion :

   -1.0000      0            0
         0         0    1.0000
         0    1.0000         0   

  • 3-2-1 Euler Angle Sequence for given quaterion :

3.14159265358979   0   1.57079632679490

  • Resulting Rotating vector v2 after rotaing vector v1=[1,0,0] for given quaterion :

-1.00000000000000   0   0

d.) q=[-.7071, 0, 0, 0.7071]

  • Equivalent DCM Matrices for given quaterion :

         0   -1.0000         0
    1.0000      0            0
         0         0    1.0000

  • 3-2-1 Euler Angle Sequence for given quaterion :

-1.57079632679490   0   0

  • Resulting Rotating vector v2 after rotaing vector v1=[1,0,0] for given quaterion :

0   1.00000000000000   0

%% MATLAB CODE %%

clc;                                                                                    % Clear Command Window
clear ;                                                                                % Clear Workspace Variable
close all;                                                                            % Close Windows of MATLAB

q=zeros(4,4);                                                        % Creating zeros Matrix 4 rows * 4 column
q(1,:)=[0.7071, 0, 0, 0.7071];                                               

q(2,:)=[0, 0.7071, 0, 0.7071];

q(3,:)=[0, 0, 0.7071, 0.7071];

q(4,:)=[-.7071, 0, 0, 0.7071];


%% Equivalent DCM Matrices for given quaterions %%
DCM = quat2dcm(q);                                                            % Convert Quaterion to DCM

%% 3-2-1 Euler Angle Sequence for given quaterions %%
Euler=quat2eul(q);                                                                % Convert Quaterion to DCM

%% Resulting Rotating vector v2 after rotaing vector v1=[1,0,0] for given quaterions %%

v1=[1,0,0];
v2=quatrotate(q,v1);                                                              % Rotate Vector v1 for given Quaterion

Add a comment
Know the answer?
Add Answer to:
3) Given the following quaternions, calculate the equivalent DCM matrices, 3-2-1 Euler Angle Sequences, and resulting...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. For this question, we define the following matrices: 1-2 0 To 61 C= 0 -1...

    4. For this question, we define the following matrices: 1-2 0 To 61 C= 0 -1 2 , D= 3 1 . [3 24 L-2 -1] (a) For each of the following, state whether or not the expression can be evaluated. If it can be, evaluate it. If it cannot be, explain why. i. B? +D ii. AD iii. C + DB iv. CT-C (b) Find three distinct vectors X1, X2, X3 such that Bx; = 0 for i =...

  • using MatLab R611 + R1(11 – 12) + R2(11 – 13) = V1 R312 + R4(12...

    using MatLab R611 + R1(11 – 12) + R2(11 – 13) = V1 R312 + R4(12 – 13) + Ri(12 – I1) = V2 R513 + R4(13 – 12) + R2(13 – 11) = V3. = = 2012, R3 512, R4 = 1512, R5 = Let the resistances be given by Ri 1012, R2 want to calculate the currents 11, 12, and 13. 3012 and R6 2512. We = (a) Write the equations in matrix form Ax b, where x...

  • 2. [15 points] Consider the following matrices: 2 -2 2 3 -3 3 4 -2 2 12 2 2 , 36 1 1 18 3 3 231 ,...

    2. 15 points Consider the following matrices 2 -2 2 3 -3 3 4 -2 2 4 6 2 12 2 2 36 1 1 18 3 3 53 -3 1 -22 2 21 33 -1 1 -1 1 ,ws 3 3 -2 3 -1 0 -20 0 -1 3 7 -3 2 Let V span^v1, v2, v3) and W-span{w1, w2, w3, wa,w5, ws). (a) By finding more suitable bases, give a simple description of the subspaces V and W....

  • Problem #2: Consider the following vectors, which you can copy and paste directly into Matlab. x=[3 4 4 3 5 5 1 2 3...

    Problem #2: Consider the following vectors, which you can copy and paste directly into Matlab. x=[3 4 4 3 5 5 1 2 32); y [2 4 4622 4 2 4] Use the vectors x and y to create the following matrix. 3 2 0 0 0 0 0 0 0 o Such a matrix is called a tri-diagonal matrix. Hint: Use the diag command three times, and then add the resulting matrices. To check that you have correctly created...

  • Intro Step 11 We will be working with the following matrix [1 2 3 0 0...

    Intro Step 11 We will be working with the following matrix [1 2 3 0 0 0 0 2 1 2 3 0 0 0 3 2 1 2 3 0 0 0 3 2 1 2 3 0 0 0 3 2 1 2 3 0 0 0 3 2 1 2 0 0 0 0 3 2 1 0 0 0 0 0 3 2 0] 0 0 0 0 3 2 1 Use MATLAB to find the...

  • Need help with number 3 the last one Need help with number 3 I have already...

    Need help with number 3 the last one Need help with number 3 I have already given the whole question MATH 1030 – Application Assignment 3 Cryptography Due: Thursday, June 4, 2020 at 11:59pm Atlantic time (submit through Brightspace) You must show your work for full marks. The goal of this assignment is to use our knowledge of linear algebra to do cryptography. We will encrypt a plaintext using a cipher where the resulting ciphertext should not be legible unless...

  • need ans for the following questions, the last 3 pages for more info. Questions: more info:...

    need ans for the following questions, the last 3 pages for more info. Questions: more info: expermint e/m avr=1.71033*10^11 7 2 points of the following options, which conditions for V or I produce the largest radius of the electron beam path r? Hint: Use e/m= 2V (5/4)*aP/(Nuo Ir) Maximum land Maximum V O Maximum land Minimum V Minimum I and Maximum V Minimum I and Minimum V 8 2 points By what factor will change if the radius of the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT