Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matrix rotation

Subject: Matrix rotation

From: JP

Date: 25 Mar, 2010 15:37:05

Message: 1 of 3

I have 2 matrices (A and B), with the same distance matrix but different coordinates.

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.

I'm hoping the bright minds from this community can help me out

Subject: Matrix rotation

From: Roger Stafford

Date: 25 Mar, 2010 16:01:22

Message: 2 of 3

"JP " <jp@jpsim.com> wrote in message <hofvv1$sfb$1@fred.mathworks.com>...
> I have 2 matrices (A and B), with the same distance matrix but different coordinates.
>
> 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.
>
> I'm hoping the bright minds from this community can help me out
------------
  You might be interested in this thread:

 http://www.mathworks.com/matlabcentral/newsreader/view_thread/169096

or perhaps this one:

 http://www.mathworks.com/matlabcentral/newsreader/view_thread/248242

Roger Stafford

Subject: Matrix rotation

From: Matt J

Date: 25 Mar, 2010 16:34:04

Message: 3 of 3

"JP " <jp@jpsim.com> wrote in message <hofvv1$sfb$1@fred.mathworks.com>...
> I have 2 matrices (A and B), with the same distance matrix but different coordinates.
>
> 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.
==============

You can use my absolute orientation tool:

http://www.mathworks.com/matlabcentral/fileexchange/26186-absolute-orientation-horns-method

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us