http://www.mathworks.com/matlabcentral/newsreader/view_thread/277544
MATLAB Central Newsreader  Matrix rotation
Feed for thread: Matrix rotation
enus
©19942015 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Thu, 25 Mar 2010 15:37:05 +0000
Matrix rotation
http://www.mathworks.com/matlabcentral/newsreader/view_thread/277544#729816
JP
I have 2 matrices (A and B), with the same distance matrix but different coordinates.<br>
<br>
I'm looking for an algorithm to apply to B to rotate it so that it has the same coordinates as A. I believe that calculating the angles between a few points in A and B and plugging those into a rotation matrix should do the job but I can't think of an implementation.<br>
<br>
I'm hoping the bright minds from this community can help me out

Thu, 25 Mar 2010 16:01:22 +0000
Re: Matrix rotation
http://www.mathworks.com/matlabcentral/newsreader/view_thread/277544#729828
Roger Stafford
"JP " <jp@jpsim.com> wrote in message <hofvv1$sfb$1@fred.mathworks.com>...<br>
> I have 2 matrices (A and B), with the same distance matrix but different coordinates.<br>
> <br>
> I'm looking for an algorithm to apply to B to rotate it so that it has the same coordinates as A. I believe that calculating the angles between a few points in A and B and plugging those into a rotation matrix should do the job but I can't think of an implementation.<br>
> <br>
> I'm hoping the bright minds from this community can help me out<br>
<br>
You might be interested in this thread:<br>
<br>
<a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/169096">http://www.mathworks.com/matlabcentral/newsreader/view_thread/169096</a><br>
<br>
or perhaps this one:<br>
<br>
<a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/248242">http://www.mathworks.com/matlabcentral/newsreader/view_thread/248242</a><br>
<br>
Roger Stafford

Thu, 25 Mar 2010 16:34:04 +0000
Re: Matrix rotation
http://www.mathworks.com/matlabcentral/newsreader/view_thread/277544#729846
Matt J
"JP " <jp@jpsim.com> wrote in message <hofvv1$sfb$1@fred.mathworks.com>...<br>
> I have 2 matrices (A and B), with the same distance matrix but different coordinates.<br>
> <br>
> I'm looking for an algorithm to apply to B to rotate it so that it has the same coordinates as A. I believe that calculating the angles between a few points in A and B and plugging those into a rotation matrix should do the job but I can't think of an implementation.<br>
==============<br>
<br>
You can use my absolute orientation tool:<br>
<br>
<a href="http://www.mathworks.com/matlabcentral/fileexchange/26186absoluteorientationhornsmethod">http://www.mathworks.com/matlabcentral/fileexchange/26186absoluteorientationhornsmethod</a>