MATLAB Answers


Align 2 matrices to find the minimum difference

Asked by Michael
on 20 Mar 2019
Latest activity Commented on by Michael
on 20 Mar 2019
Accepted Answer by Jan
I want to find the difference between two matrices but there might be a rotation misalignment between them. These matrices are simuations of a surface from different sources and both contain some NaN values. Is there a function in Matlab or a way I can find the rotation angle that best aligns the matrices so the difference between them is the minimum possible? Many thanks!


Show 1 older comment
Yes. The data almost look similar but one might be a few degrees CW or CCW rotated with respect to the other.
Is the center of rotation known?
The center of rotation is not known.

Sign in to comment.

1 Answer

Answer by Jan
on 20 Mar 2019
 Accepted Answer

  1 Comment

Thanks Jan, I'll check this out and accept asap.

Sign in to comment.