Suppose I have two matrices A=[3 1;1 4] and B=[5 -2;-2 4]. Where A and B represent covariance ellipses in 2D. Now, if I want to combine it in 4D, that is, C=[A 0;0 B]. C is a four dimensional ellipsoid but the cross correlation between A and B is zero. I want to rotate A and B such that, they are highly correlated.
I have the following questions:
1) How can I rotate the A and B (either in 4D or 2D separately) such that they have maximum cross correlation with each others?
2) Is there any 4D rotation(either Euler or Quaternion) matrix in explicit form(I couldn't found any)?
Kindly guide me.