Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Conversion between Euler angles and rotation matrix --- Matlab code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hiho  
View profile  
 More options Apr 10 2008, 11:37 pm
From: Hiho <haifeng.g...@gmail.com>
Date: Thu, 10 Apr 2008 20:37:07 -0700 (PDT)
Local: Thurs, Apr 10 2008 11:37 pm
Subject: Conversion between Euler angles and rotation matrix --- Matlab code
function orthm = ang2orth(ang)

sa = sin(ang(2)); ca = cos(ang(2));
sb = sin(ang(1)); cb = cos(ang(1));
sc = sin(ang(3)); cc = cos(ang(3));

ra = [  ca,  sa,  0; ...
       -sa,  ca,  0; ...
         0,   0,  1];
rb = [  cb,  0,  sb; ...
         0,  1,  0; ...
       -sb,  0,  cb];
rc = [  1,   0,   0; ...
        0,   cc, sc;...
        0,  -sc, cc];
orthm = rc*rb*ra;

function ang = orth2ang(orthm)
ang(1) = asin(orthm(1,3)); %Wei du
ang(2) = angle( orthm(1,1:2)*[1 ;i] ); %Jing Du
yz = orthm* ...
    [orthm(1,:)',...
     [-sin(ang(2)); cos(ang(2)); 0],...
     [-sin(ang(1))*cos(ang(2)); -sin(ang(1)*sin(ang(2)));
cos(ang(1))] ];

ang(3) = angle(yz(2,2:3)* [1; i]); % Xuan Du


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sha Ma  
View profile  
 More options Apr 11 2008, 1:16 am
From: "Sha Ma" <masha....@gmail.com>
Date: Fri, 11 Apr 2008 13:16:24 +0800
Local: Fri, Apr 11 2008 1:16 am
Subject: Re: Conversion between Euler angles and rotation matrix --- Matlab code

hehe,thank you very much!!! ^_^

2008/4/11, Hiho <haifeng.g...@gmail.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haifeng Gong  
View profile  
 More options Apr 11 2008, 1:20 pm
From: "Haifeng Gong" <haifeng.g...@gmail.com>
Date: Fri, 11 Apr 2008 10:20:15 -0700
Local: Fri, Apr 11 2008 1:20 pm
Subject: Re: Conversion between Euler angles and rotation matrix --- Matlab code
hehe

I use this Google Group to preserve my reusable code.

Haifeng

--
Haifeng GONG
Post-doctoral Scholar
Department of Statistics, UCLA

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google